Month: May 2011

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…

Read More

Know Your Text Editor – Teach Me to Code Podcast

Over the last few weeks I've been using macvim and janus to write code. The more I learn about VIM, the more I love it. It's not so much that VIM does things that I find particularly natural or “better”, but rather it's that it's extremely powerful for opening, managing, and editing files. Each little trick I get brings…

Read More

Acceptance Tests with RSpec and Capybara

On the Ruby Rogues podcast I mentioned that I had moved away from Cucumber to RSpec and Capybara for my integration tests. Here’s a demo on how to do some TDD with RSpec and Capybara. Download 180.6 MB Download iPhone & iPod 109.2 MB

Read More

003 RR Templating Languages for HTML, CSS, and JavaScript

The Rogues talk about templating languages for HTML, CSS, and JavaScript.

Read More
PlayPlay

058 TMTC Tyler Bye (ABC Network iPad App)

There's a lot more to the ABC iPad app than just the iOS components. There's a HTTP Live Streaming level to this that manages all of the content for the application and streams it to the devices. Tyler explains the history of Protoven, Uplynk, and a lot of technical details behind how the ABC iPad app hangs…

Read More

CoffeeScript: The Cool Parts

CoffeeScript offers more than nice syntax for setting and managing data and functions. It also offers Classes, Inheritance, access to a ‘super’ method, Ruby-style string interpolation, easy variable and function bindings, and chained comparisons. Here’s the code I showed in the video: class Vehicle constructor: (@name) -> move: (miles) -> console.log @name + " drove…

Read More

002 RR Virtual Machines, Concurrency, and the Future of Ruby

The Rogues talk about virtual machines, concurrency, and the future of Ruby.

Read More
PlayPlay

057 TMTC Jamis Buck Interview

Jamis Buck is a Ruby on Rails developer working at 37signals. He was part of the Rails Core Team, created the SQLite driver for Ruby, and created the Capistrano library for deploying applications in Ruby. We talked about several things including: the Maze algorithms he's been working on on his blog Capistrano Ruby on Rails 37signals…

Read More

Rails 3.1 Beta – Sprockets, CoffeeScript, and JQuery – A Teach Me To Code Tutorial

  Ruby on Rails 3.1 is moving to use Sprockets to compile CoffeeScript into JavaScript and include JQuery in it’s JavaScript by default. This is a quick demo of how it all hangs together to manage your JavaScript in Rails 3.1. Download 65.7 MB Download (iPod & iPhone) 41.4 MB

Read More

001 RR Testing Practices and Tools

The Rogues talk about Ruby testing practices and tools.

Read More
PlayPlay

056 TMTC – Tom Preston-Werner (Github Co-founder)

Tom Preston-Werner is one of the founders of Github.com. He's a Ruby programmer who has successfully launched a business used by hundreds of thousands of programmers all over the world to host their programming projects. He is also the original developer behind Gravatar. We discussed how Github.com got started. Tom also mentioned Gravatar, god, and Jekyll. We also discussed open…

Read More