By Peter Bell

Check out Rails 2.0 - even if you don't want to use it!

In case you don't know, Rails 2.0 is now out. I'm actually not a huge Rails fan. It's opinionated software and I'm an opinionated programmer - things just wouldn't work out between us!

That said, skimming through the feature lists I've already found some things I did ages ago, some that I was planning to do now, and some that I'll be adding to my task list as I think they are great ideas.

Comments
I agree Peter. Every once in awhile I get "rails envy." In addition to some of the neat stuff they are doing with HTTP authentication, I thought this feature was kind of neat as well:

"We’ve also made it much easier to structure your JavaScript and stylesheet files in logical units without getting clobbered by the HTTP overhead of requesting a bazillion files. Using javascript_include_tag(:all, :cache => true) will turn public/javascripts/.js into a single public/javascripts/all.js file in production, while still keeping the files separate in development, so you can work iteratively without clearing the cache."

For those using libraries like JQuery who want to be able to stack the plugins used for particular requests, this could be a very cool feature.
# Posted By Jon Clausen | 12/8/07 9:47 AM
Peter,

Like you, my opinions don't always match those of Ruby on Rails but I do like a lot of their ideas.

I would love to hear about which of their ideas you like and why. Want to give us your thoughts?
# Posted By Steve Bryant | 12/8/07 10:02 AM
@Jon, The Javascript/CSS feature was actually one I was already working on for my in-house framework. It'll allow me to keep lots of nice, tight little manageable css files without getting killed by lots of http calls for each page view. I'm probably just going to make it part of an Ant build task, although I'm considering Rake just because I prefer the syntax and brevity, I like having programmatic features for configuration and it'd force me to actually write some Ruby. I'll see how it goes . . .

@Steve, I like the attempt to write concise, DRY code. I like minimalist syntax and I like the amazing brain trust that the Ruby world has which has created everything from rake and capistrano to rspec and haml. I love that everything is an object (rather than having primitives like in Java), and I love the easy extensibility/metaprogramming capabilities. I also love closures for handling collections. In short, I love a lot of the language features from Ruby and a lot of the people who chose to use Ruby as a language.

As for Rails itself, I think it overuses helpers, I hate using the database as the definitive source of metadata (as opposed to a programmatically defined object model you just map to a db structure). I dislike limitations on tables, difficulties working with legacy data sources, a slightly too puritanical approach to REST (I love REST, but the Rails implementation to me seems flawed), and as I go through a Rails project I see lots of places where I want to say "I get what you're doing, but THIS would have been - to me - a more elegant approach".

No doubt I'll build a real project in Rails and I'll find that some of the stuff I hate is OK and other things are intolerable, but I certainly have huge respect for the community and the problems they're trying to solve - even if I dn't agree with lots of the detailed design decisions.
# Posted By Peter Bell | 12/8/07 6:12 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.005.