It seems Stevey can read my mind
December 19th, 2007
I just read his latest rant Code's Worst Enemy. These two paragraphs from his latest rant are exactly my thoughts.
"...I think that his "something bad" may well have been the act of creating the book Refactoring, which showed Java programmers how to make their closets bigger and more organized, while showing Martin that he really wanted more stuff in a nice, comfortable, closet-sized closet......."
".....Tragically, the only GoF pattern that can help code get smaller (Interpreter) is utterly ignored by programmers who otherwise have the names of Design Patterns tattooed on their various body parts......"
I too believe that each and every line of code that we add to our project brings with it some kind of entropy (disorder). It adds to the clutter making it difficult for us to see what exactly is going on. And that's why I like attr_accessor in Ruby over "Alt+Insert" shortcut for Java in IntelliJ IDea, even though both will require the same effort.
It gives me an itch looking at the ROI (Return on Investment) in Java Projects. The ratio of the amount of code that we write to the functionality that we get out of it is really embarrassing.
I think the authors of the mentioned books should have put a Statutory Warning on the back of their books.
Using these patterns/refactorings just for the heck of it may be injurious to your project. Use at your own discretion.
Leave a Reply