Re:Write code. Not too much. Mostly functions.
by nickbauman on Tuesday December 22, 2020 @01:30PM
(#25509492)
This can be summarized as
"It's better to repeat yourself than use the wrong abstraction."
It happens often in the attempt to be DRY we add a parameter or some condition to handle a new variation to what seems like a universal logical construct in the code. Do this enough times and the code is no longer comprehensible to any of the people who wrote each variation, let alone a newcommer. We mistake some commonalities with a universality. We become zealots.
"It's better to repeat yourself than use the wrong abstraction."
It happens often in the attempt to be DRY we add a parameter or some condition to handle a new variation to what seems like a universal logical construct in the code. Do this enough times and the code is no longer comprehensible to any of the people who wrote each variation, let alone a newcommer. We mistake some commonalities with a universality. We become zealots.