Articles tagged with refactoring
Wednesday, November 15, 2006
Premature Extraction
The Rails Way is off with their first code review. It is really great to see into the coding process of top notch hackers. Their first review deals with “acts_as” code modules and “premature extraction”. Koz keeps it simple.
These both illustrate a common anti-pattern I see with rails programmers: premature extraction. Just because rails has a bunch of meta programming magic with names like acts_as_list, doesn’t mean you need it.
The process is all about keeping it simple and extracting only when you need to. I’ve been learning more and more about that in a Ruby application I’ve been working on lately. It is a challenge, especially coming from .NET, to not overly abstract early.
Saturday, November 04, 2006
The Rails Way
Most who know me, know that I am a big fan of Ruby and Rails. I simply enjoy using the language far more than others I’ve used. The biggest reason is the community. I my previous post about the importance of choosing a community, I note the differences that I’ve experienced. Here’s another…
Jamis Buck and Michael Koziarski have introduced The Rails Way, a site where you can upload code and they will analyze it according to best practices (a.k.a. the rails way). This is not for-profit, it is for the community—a way to help others grow in their coding skills. I really do enjoy being a part of this community.
You can read the intro on Jamis’ blog.
Articles RSS Feed