Rails for the Ruby-Impaired, John Paul Ashenfelter

Notes from John Paul Ashenfelter’s talk on Ruby on Rails at Frameworks 2007.

Regardless of what language you’re developing you’ll be facing the same problems. Frameworks across all languages have that in common - they try to make developing easier, usually with some take on the model-view-controller pattern. The holy grail of application development is something that’s good, fast and cheap. Usually the joke is “pick two”, but in the end people want it all and can be swayed to switch if they think the grasses is.. perfect (my lame metaphors, not his).

So whats are some ways of doing this? Following standards, best practices, reusing code and focusing on quality are a good start. Finding a way to gracefully response to change is up there as well.

So why is Rails hot? It pushes you to using best practices to develop. Seems like most coldfusion frameworks do that, but Rails goes a few steps farther. It creates test cases, defaults to a certain naming system for your database, creates standard URLs and separates your model, view and controller. In the end a lot is assumed when you start a rails application. If you stick to these conventions you can save yourself a lot of time and code.

Why should you care about Rails? Many of the arguments for using Coldfusion instead of Java can be said true about Rails as well. Instead of saying “I’d rather do it in CF”, a lot of smart java people are instead jumping ship to Rails. Both are script oriented, and they’re both dynamically typed (duck typing). Rails itself is similar to a collection of cf frameworks, although there’s not single framework equivalent (although Model Glue Unity comes the closest).

John goes over the various code points in Rails to great extent which was a high level description of many of the concepts. How the models work, the controllers, rhtml and rjs for views, helpers, layouts, partials. He goes over a lot of topics, but focuses on a few topics such as vendor directories. Rather than listing out rails common features here, you can check out the rails documentation for this part.

What’s this all come down to? Best Practices are the best. Make the database invisible. Easy things should be easy. Testing is crucial… and should be easy.

To finish out, he makes a call for the Coldfusion Frameworks to change a few things:

  • More convention, less configuration.
  • Pick an ORM and integrate it. (and migrations!)
  • Pick an Ajax library and integrate it.
  • Pick a testing library and integrate it. (and automate creation!)
  • Don’t be afraid of the command line. (leverage Ant for automation!)

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments
[...] Rails for the Ruby-Impaired, John Paul AshenfelterNotes from John Paul Ashenfelters talk on Ruby on Rails at Frameworks 2007. Regardless of what language you’re developing you’ll be facing the same… [...]
[...] Rails for the Ruby-Impaired, John Paul AshenfelterNotes from John Paul Ashenfelters talk on Ruby on Rails at Frameworks 2007. Regardless of what language you’re developing you’ll be facing the same… [...]
CF on Wheels and cfrails are working on these things. I would have considered CF on Wheels to be pretty close to RoR, closer than MG anyway. Some things that Ruby allows just can’t be done very well in CF, although, much of it can, and I think the guys on CF on Wheels are doing a good job in capturing that.

cfrails is my thing, so of course I’m partial to it. It’s not quite stable yet, so I wouldn’t use it for production code as interfaces are still changing, but I’m trying to accomplish a lot of those goals John hit on.

Finally, I thought the title was a little funny, because there is a book called Ruby for Rails, whose purpose it is to teach Ruby to the Ruby-impaired Rails users, and describe all the stuff in Ruby that makes Rails possible. This sort of twisted that around.

Thanks for keeping those of us who couldn’t be there in the loop about all these talks! Seems you’ve attended a lot of the ones I would have chosen, so you’ve been a good resource for me.

is there a cold fusion version open source
There are two frameworks that are open source that are going the rails route — CF on Wheels and CF Rails. There is also an open source CF server, The Smith Project, but it’s relatively new.
Leave a comment

(required)

(required)