Re:In Defense of Copy and Paste
by njharman on Friday February 08, 2013 @04:20PM
(#5190219)
Refactoring / DRY to me is not about creating monolithic, generic do anything functions. It decomposing code into layers of abstraction somewhat like mini-"DSL"s. The top level functions are tying together next level "down" helper functions. Which may themselves be higher level tools over something like DB api. More than 3-4 layers is probably a smell.
[ Parent
| on HN ]
There are no comments on this comment yet.