Ryan

Ryan Wood

Product Builder, Rubyist, Entrepreneur of sorts
Blog Archives

15 Nov 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.

bq. 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 actsaslist, 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.

Blog Archives