I don't get Ruby on Rails
You know the old joke -- there's two kinds of people, people who divide people into two kinds of people and... One of the "great divides" in taste in language is the idea of what constitutes the "principle of least surprise". For the ruby or perl crowd it would mean "if you type in something that might do what you expect, it will almost certainly do something", while for the python crowd it would mean "if you look up how to do something, you'll find a single, nice implementation, or it will be really clear how to implement it yourself".
[qt:http://media.rubyonrails.org/video/rails_blog_2.mov 512 384]
It's a very impressive demo, until you realize that every interesting step involved plucking obscure commands out of the air, and that virtually everything done in the demo beyond defining database tables should have required essentially no work on the part of the programmer.
The thing I don't get about Ruby on Rails -- aside from Ruby* -- can be summarized in one line: if it's so freaking great, why isn't Ruby development done in a web-hosted IDE that is incredibly easy to use and implemented using Ruby on Rails? Cocoa and Objective-C are, in contrast, truly great and -- guess what? -- the development environment is incredibly easy to use and implemented using Cocoa and Objective-C.
In Ruby on Rails key actions must be performed by -- get this -- dropping into shell and typing magic command phrases. WTF? I don't even have to put up with that kind of sh%t when I code in C these days. And it's not like these are power-user rocket science things like tweaking make files to optimize for a particular CPU (yes, compile for SSE2 please) -- no this is for stuff like telling Ruby on Rails you've changed the name of a column in a table.
A lot of buzzword-compliant Ruby on Rails imitations are available for different languages which aren't as off-putting (for me) as Ruby, such as CakePHP, but apparently in taking some of the slightly clever ideas in Ruby of Rails they seem to have adopted the stupid "hey forcing folks to use the command line is cool". What. The. Frack.
The funny thing is the classic Ruby on Rails demo -- "look, I can build a blogging application in ten minutes" (assuming I've committed a bunch of magic phrases to memory) -- is something I can replicate using a much simpler procedural library I knocked up while writing a simple workflow tool a few years ago in PHP. My demo doesn't involve learning magic phrases. And it wouldn't involve any programming. You just build your database tables, then write one small text file describing each view you want in a very simple specification language (everything defaults to common sense, so if you basically just tell it what the tables are, everything "just works") and -- to quote Steve Jobs -- bang. Done. For Ruby's blog demo that would involve a blog entry table and a comments table, so it would be kind of slow-paced if I stretched the demo out to five minutes.
The funny thing is that when I wrote the library the obvious thing I didn't do was have the library infer most of the stuff you type into the files from the database metadata contained in the database itself. E.g. if your blog table comprises id, title, date, and content fields, and the comment table comprises id, blog_id, email_address, web_address, and content fields, the engine could simply goes "blog_id implies a many to one relation to blog" and thus decides that when it displays a blog it shows all related comments underneath it.
In other words, the entire concept of "scaffolding" would be calculated on-the-fly as required and require zero effort on the part of the programmer. More importantly, there would be an abstraction layer between any overriding you do of default behavior and the actual database structure so that changes to the database structure do not entail going through a scaffolding step again. So, if I create a blog table (id, title, content) then a default view is created with zero work on my part. I can then override that default as I see fit creating a custom view, but if I add a new field to the blog table (date_posted, say) it appears in the default and customized views without my needing to do anything.
The only thing you do when building a blog system (as per the classic Ruby on Rails demo) that isn't completely obvious from the table design is to tell the engine that when you initially create a blog entry you don't create comments, and that when you view a blog entry you're able to add comments**. Anything you, as a programmer, have to do in building that system beyond those steps represents a failure of the basic framework design, and having to remember magic command line crap is an epic failure regardless.
Now, it would be excusable -- laudable even -- for an application framework to include a "magic" system for dealing with legacy databases that don't conform to your naming conventions. After all, your application might need to interact with a less enlightened legacy system. But the cruft overhead in Ruby on Rails for dealing with stuff designed from scratch to work within the conventions exceeds any sensible design for an exceptional mechanism for dealing with legacy crap.
So, I just don't get Ruby on Rails or its imitations.
Notes: * Ruby is not to my taste as a language (my taste would be Python, with curly braces instead of indentation, running at the speed of compiled C++ - Unity's version of JavaScript is actually pretty close).
** Indeed, I would simply add a new naming convention that differentiates "relatesTo" from belongsTo" many-to-one relations, and that behavior would be automatic too.