torsdag, januari 11, 2007

That Rails Thing

I need to join the fray. Pat Eyler has announced a competition together with APress. The first installment is about how Rails has made me a better programmer. Details to be found here.

So, let's get at it. Rails has inspired and affected me in numerous ways. You got to realize that I have been programming web applications in Java for way too many years. Before that I've done both ASP and PHP. Nothing ever felt natural. I've tried many of the LISP frameworks (and Uncommon Web is really cool). I've embraced continuation-based frameworks. But none felt so powerful, yet nonintrusive. Rails embodies the best parts of Ruby.

For me, Rails is very interesting for several reasons. First and foremost is the fact that it is an incredibly good framework. It's really amazing how good it is. And that in itself acts as an inspiration. To know that software can be this good makes me want to strive to perfect my API's, make my libraries more usable, and finding new and novel ways to improve my DSL's.

But that's only part of it. The flip side of this is that Rails is not perfect. In fact, there are myriad ways it can be improved. And that gives me hope, because it also means that no matter how good my code gets, it can always get better. And that means I'll never be totally bored!

In a very literal sense, Rails has made me a better programmer in another way. Since Ruby on Rails was the first Ruby-application to make it into Karolinska Institutet, it means I can thank Rails for being able to write more Ruby at work. And writing Ruby instead of Java must make you a better programmer, neh?

Of course, Rails is an excellent testing tool for seeing how far we have left with JRuby. It goes without saying that you become a better programmer by implementing a language...

I have several applications and libraries that I keep in mind when writing my code. Those libraries act as a gauge against which I measure my code. Code quality, testing ability, interface, sheer trickyness; in all these areas, Rails is one of the top frameworks I know.

4 kommentarer:

Jonathan sa...

What I love about Rails is how it organizes its code into models, (multiple) controllers, and views. Controllers set up the variables for the views. Every model gets a controller. Every controller gets seven actions: new, create, edit, update, show, delete, list.

These concepts can be used to organize any kind of web application. Elegant!

JMC sa...

what i love most about rails is how it make me feel warm and fuzzy. i want to have rails' baby...

JMC sa...


It's called MVC, and it's been around for a few decades. In this sense rails is nothing new.

Sur Max sa...

I love rails a lot. Its true that after doing rails i started loving ruby more than anything else but rails has provided really cool environment for web-development, i have worked on PHP and .net before coming to rails and i never found this much importance and enjoyment in the most important things like TESTING and in rails it is amazing.
Even the MVC thing in rails seems really great.

Yeah true that MVC is there since so many years ago then
whats the exceptional thing about rails that everybody have started talking about it and emphasizing on it ?
I think rails has realized the MVC architecture again and its really feeling fresh here in rails.