Archive for November, 2006
RubyOnRails
Sunday, November 19th, 2006I had been thinking about starting my blog for quite some time. Finally I’m starting it with a nice topic. I spent some time on exploring ruby on rails. I feel like telling the whole world about it.
First I could not find why ruby is a great language. Then Himanshu, a friend of mine, mentioned that ruby is a cute language. I guess that describes ruby. Its a nice and cute language but no major differentiator.
But Rails is what makes it special. Its great tool for psuedo-techies who want to build quick websites. Having said that, I dont mean it is not a great tool for techies. But I could not get answered to some questions on it.
- It works in a fast-cgi mod. Which does not look very clean. The latest recommendation is to use apache+reverse proxy+mongrel. It looks pretty geeky and nice but has some fundamental problems with it. Apache does a nice job of taking care of memory leaks etc. by restarting apache after every N requests. That may not be possible with mongrel. Also, I am not sure how easy is it to monitor mongrel.
- rails generates some code for you which I personally dont like too much. The way one will package such things is generate rails code and then check-in it in cvs or another source control system. But in next version of rails, things may change. In that case merging changes will be a pain.
- I have a feeling that scalaing will not be easy with rails as it does too many things for you and hides details.