DCRug Last Night
Source: WikipediaLast night I attended DCRug. It was inspirational to say the least. Chad Fowler, Rich Kilmer and Marcel Molina Jr. tried to help the audience decide what makes code beautiful. They did this by opening up open source code and critiquing it.
I have seen Chad and Rich speak before so I knew what to expect from them, but I was most impressed with the eloquence of Marcel. He has a unique ability to quickly form an opinion, express that opinion so people can understand it and defend that opinion. Not a small feat to say the least.
They started by opening up a piece of Mongrel code. Mostly they didn’t like it because the methods were too long, but in the end Chad pointed out that the code is obviously not a total failure, since it is very widely used (until mod_rails comes out).
They talked about the importance of skinny controllers, the multitude of ruby virtual machines on going, and general ways to both clean up your code and to tell if your code needs cleaning up.
A few comments that I found to be very telling were
- Comments aren’t testable - Marcel
- All lines of code in a method should have a similar level of abstraction - Marcel
- When rails fails to provide you a good place to put code, don’t forget you are writing ruby - Rich
They shot a video of the talk, so if/when I find it I will post it here for posterity.
