loading...

re: When DRY Doesn't Work, Go WET VIEW POST

TOP OF THREAD FULL DISCUSSION
re: If you have a third level branch with a certain feature, and then you need that same feature in a very distant other 4 level branch, then inheritan...
 

Not to mention, how much could you have gotten done (duplicating early if necessary) for multiple features, rather than "keep extracting the code out" for one (while guessing at all of your abstractions' possible use/edge cases through some sort of crystal ball)?

My general rule for deduplicatimg is that 2 times is okay and three can be. Every rule for style and organization must be applied with knowledgeable consideration.

Code of Conduct Report abuse