Re:The anti-if campaign
by mdemare on Monday October 12, 2009 @11:45AM
(#876953)
Locality - a word to remember.
As soon as you extract a method, or turn a switch statement into classes with polymorphism, or introduce a MVC pattern, you hurt locality, and that kills readability, like an essay with dozens of footnotes.
All those things have their advantages, but people are too quick to sacrifice locality.
As soon as you extract a method, or turn a switch statement into classes with polymorphism, or introduce a MVC pattern, you hurt locality, and that kills readability, like an essay with dozens of footnotes.
All those things have their advantages, but people are too quick to sacrifice locality.