| ▲ | colechristensen 4 hours ago | |||||||
Making maintainable code is a good goal. DRY is one step removed from that goal and people use it to make very unmaintainable code because they confuse any repeated code with unmaintainability. (or their theory that some day we might want to repeat this code so we might as well pre-DRY it) The result is often a horrendous complex mess. Imagine a cookbook with a cookie recipe that resided on 47 different pages (40 of which were pointers on where to find other pointers on where to find other pointers on where to find a step) in attempts to never write the same step twice in the whole book or your planned sequels in a 20 volume set. | ||||||||
| ▲ | chuckadams 4 hours ago | parent [-] | |||||||
It's almost like there's a "reasonable person" type of standard that's impossible to nail down in a general rule... | ||||||||
| ||||||||