Devchat.tv Episode Roundup

Devchat.tv Episode Roundup

Download on the App Store

All Devchat.tv Episode Roundup episodes

  • Rocky Mountain Ruby Conferences with Marty Haught and Charley Baker

    Marty is the organizer of the Boulder Ruby Users’ Group and Rocky Mountain Ruby Conference. He’s been programming Ruby since 2005.

    Charley has been programming Ruby for about 6 or 7 years and doing IT for about 15 years. He got involved with Watir, which led him to Ruby.

    The Rocky Mountain Ruby Conference is held in Boulder and includes several hikes and other activities not normally included in a conferences. I’ll also be speaking at the conference.

    We went over the differences between the “Boulder Area” and the “Denver Area”. They’re 15-30 minutes apart, but culturally they’re pretty diverse. Boulder is small, but is becoming a startup and technology hub.

    Both Marty and Charley have been talking about the food experience in Boulder and they’re setting up the conference to be a great food experience as well.

    I asked if Marty and Charley view the community and regional conferences has changed after organizing a conference. Marty actually helped with Mountain West Ruby Conference. He also went into some of the challenges of picking a date and arranging the conference. He came up with the conference to get local people involved.

    They also went into how they work around repeated talks and whether or not they want them. Repeaters are OK, but you want a unique program and conference.

    We also discussed how talks are picked. How much weight the topics, speakers, and explanations get.

    The discussion finally turned to the venue, which is the historic Boulder Theater. It sounds like a terrific way to run a conference with some of the options they have with setting up the experience. Much different from the hotel based conferences.

    37 min
  • Web Forms in Ruby on Rails
    Building web forms in Rails was something that confused me when I was new to the framework. This is probably due to the fact that there are some methods that are a lot alike and there are a couple of ways of instantiating a form that do different things.
    The first way of building a form that is probably the most common is by using the ‘form_tag’ helper and the form helpers to build forms. Here’s an example.
    Pretty straightforward and it builds a standard login form. I’d get confused because there are also helpers that correspond to ‘label_tag’, ‘text_field_tag’, and ‘password_field_tag’ that do something very similar.
    Here’s a user signup form that use these similar tags:
    You’ll notice that these helpers use two parameters to build the form’s elements. It effectively scopes or namespaces those form parameters. They’ll be named “user[username]”, etc.
    If you’ve gotten that much, then ‘form_for’ won’t be too much of stretch. ‘form_for’ takes a model object as a parameter and binds the form to that object. It does the namespacing implicitly, which means that ‘label’ and ‘text_field’, etc don’t need two parameters to name the element. Just one.
    So, you’ll notice that the ‘form_for’ passes a parameter to the block. That parameter is a FormBuilder that contains the object, scopes the elements, and sets their values.
    Finally, go sign up for the Rails course at http://railscoach.com/ruby-on-rails-courses/.
    8 min
  • Polymorphic Associations
    Rails has the concept of Polymorphic associations, which are associations that can be of different data types. For example, let’s say we have a Comment model. A comment in your app can be on a post or a page. Rather than creating a PostComment model and a PageComment model, you can set up your Comment model to have a polymorphic association to a Page or a Post.
    Generally people call these associations “something-able”. In this case, it would be commentable.
    Here’s a quick code sample:
    class Comment < ActiveRecord::Base belongs_to :commentable, :polymorphic => true
    end
    class Page < ActiveRecord::Base has_many :comments, :as => :commentable
    end
    class Post < ActiveRecord::Base has_many :comments, :as => :commentable
    end
    The only other thing you need to know is the database structure. On the database, you need two columns. A [polymorphic-association-name]_type string column and [polymorphic-association-name]_id integer column. In this case, it would be “commentable_type” and “commentable_id”.
    10 min
  • Nginx with Igor Sysoev and Andrey Alexeev

    Igor started developing in Nginx in 2002. He started building it because he needed something that would effectively proxy connections in an event driven manner. The other webservers at the time could only handle static content and didn’t scale well.

    Initially, Nginx was used to proxy Apache webserver.

    Igor was never really fond of fastcgi. It took him 1 to 1 and a half years to add it to Nginx after it’s public release. He explains his opinion on fastcgi.

    Igor also tells us the primary differences between Apache and Nginx and explains the tradeoffs between the two models.

    We also dug into what is coming up in the next releases of Nginx and how things will move ahead now that they have formed a company around Nginx.

    If you would like to donate to Nginx, go to http://sysoev.ru/en/donation.html

    You can also get on the mailing lists for Nginx at http://mailman.nginx.org/mailman/listinfo
    Finally, follow Nginx on twitter at @nginxorg

    27 min
  • Ruby Koans
    I’m working on another Cassandra demo, but didn’t have time to finish, so I decided to show you Ruby Koans. It’s a very interesting test-driven approach to learning Ruby. I hope you enjoy it.
    Download 52.5 MB
    Download (iPod & iPhone) 31.1 MB
    Take the 2011 Readers Survey
    0 min
  • Ruby Koans
    I’m working on another Cassandra demo, but didn’t have time to finish, so I decided to show you Ruby Koans. It’s a very interesting test-driven approach to learning Ruby. I hope you enjoy it.
    Download 52.5 MB
    Download (iPod & iPhone) 31.1 MB
    Take the 2011 Readers Survey
    0 min
  • Ruby Koans
    I’m working on another Cassandra demo, but didn’t have time to finish, so I decided to show you Ruby Koans. It’s a very interesting test-driven approach to learning Ruby. I hope you enjoy it.
    Download 52.5 MB
    Download (iPod & iPhone) 31.1 MB
    Take the 2011 Readers Survey
    0 min