Devchat.tv Episode Roundup

Devchat.tv Episode Roundup

Download on the App Store

All Devchat.tv Episode Roundup episodes

  • Debugging
    We talked quite a bit today about debugging tools in the Ruby Rogues podcast. I recorded this before that episode. Here's a brief introduction on how to use debuggers to find problems in your Rails code.
    The basic idea is that your set a breakpoint in your application, which causes the application to stop processing and allow you to access the application's state and step through the methods being called in order to find the cause of your problem.
    With the Ruby Debug library, all you need to do is require 'ruby-debug' and call 'debugger' where you want the application to stop.
    9 min
  • Polymorphism with Many-to-Many Associations – A Teach Me To Code Tutorial
    Polymorphic associations are very simple, as are many-to-many associations. When you blend the two, it's not nearly as simple. Since there isn't a working build-in mechanism for many-to-many polymorphic associations.
    Here's a quick demo of what happens if you try to set up a traditional has_many :through association with a polymorphic association. I also show how to set things up so you can get the associated objects.
    Download 101.3 MB
    Download (iPod & iPhone) 45.5 MB
    21 min
  • Polymorphism with Many-to-Many Associations – A Teach Me To Code Tutorial
    Polymorphic associations are very simple, as are many-to-many associations. When you blend the two, it's not nearly as simple. Since there isn't a working build-in mechanism for many-to-many polymorphic associations.
    Here's a quick demo of what happens if you try to set up a traditional has_many :through association with a polymorphic association. I also show how to set things up so you can get the associated objects.
    Download 101.3 MB
    Download (iPod & iPhone) 45.5 MB
    21 min
  • Polymorphism with Many-to-Many Associations – A Teach Me To Code Tutorial
    Polymorphic associations are very simple, as are many-to-many associations. When you blend the two, it's not nearly as simple. Since there isn't a working build-in mechanism for many-to-many polymorphic associations.
    Here's a quick demo of what happens if you try to set up a traditional has_many :through association with a polymorphic association. I also show how to set things up so you can get the associated objects.
    Download 101.3 MB
    Download (iPod & iPhone) 45.5 MB
    21 min
  • Gary Bernhardt Interview – Teach Me To Code Podcast

    Gary is well known for a few things including destroyallsoftware.com, Ruby vs. Python: A battle to the death, and his discussions on tools, process, and programming practices.

    We had a great discussion regarding learning to use your text editor, learning tools like git, and overall ways to improve your skill and efficiency when programming.

    42 min
  • Convention over Configuration
    The idea behind convention over configuration is that rather than having several or one large configuration file to set up the framework for you to use, Rails uses conventions to determine how things should work without configuration. In many cases in Rails, there are ways to override the default convention, but most people stick to the conventions.
    The conventions make it easy to set up and get started with Ruby on Rails. They also make it extremely easy for a person unfamiliar with your Rails project to step in and figure out what is going on.
    Some of the conventions in Rails are the following:
    A model's class is the camel cased singular version of its table name. The file name is the underscore cased version of the class name. The table name is the underscore cased pluralized model name. So, for example, the User model will be /app/models/user.rb and correspond to the "users" table in the database.
    Similar conventions apply to controllers, helpers, views, and tests.
    10 min
  • 005 RR RubyGems, Open Source, and Community
    This week we really dug into the issues surrounding RubyGems and why people are worried about it. Gregory Brown (RMU) really helped us unravel some of the issues people are having. If you want to know what the issues are in this dog fight, this is a good place to find out.
    1 hr 2 min
  • Many to Many Associations in Ruby on Rails – A Teach Me To Code Tutorial
    I had several requests in UserVoice to provide a Many to Many tutorial in Rails. This is a demonstration of how to put together a "has and belongs to many" association and a "has many through" association.
    This is somewhat basic to Ruby on Rails, but important if you need to associate different models.
    Download 161.3 MB
    Download iPhone & iPod 97.7 MB
    0 min