Friday, 23 March 2007

The Active Record pattern (or why I love Ruby on Rails)

If you don't know what active record is, I am not going to tell you. Google it, and/or read about it on the Ruby on Rails website.

If you are one of those people that think struts and Hibernate are the best combination since the Captain and Tennille (cause I know you Struts people are into that shit :-) ), then you won't like it at all, because it takes you away from messing about with configurations files and makes you work on the problem at hand.

I really buy into the convention over configuration mantra for a couple of reasons:
  • Opinions are like arseholes
  • Most object-only guys can't (or don't bother to) get the database right, and activerecord encourages sorting out the design first
Unfortunately, I don't get to work with Ruby at work, I have to use Java. I've yet to find a fully functional Active Record Implementation for Java yet. If you find one,. please let me know !

No comments: