Call me a purist but I like to make my code as object-oriented and well
structured as possible. I like to tweak the design and to work toward the
overall quality of the code. My refactoring olfactory sense is quick to react
to any offending odor in the code and it’s becoming more sensitive and less
tolerant with time.
One of the worst odors you can come across in code is duplicated code.
Duplication can appear as a result of different practices. Sometimes the
system is so large that the programmer can’t easily find his way around.
He’s simply not aware that the same problem has already been solved only a
few namespaces away. Other times it’s the result of that typical resolve to
get the job done as quickly as possible. In those cases, the programmer
desperately relies on fast-growing LOC numbers as crucial evidence of
progress. Finally, probably any burgeoning prog... (more)