3 ms·
"Single source of truth" is more meaningful than the overly simplistic "DRY". If two things are _supposed_ to behave similarly, then not having duplicate code
by hydroxonium 6y ago
"Single source of truth" is more meaningful than the overly simplistic "DRY".
If two things are _supposed_ to behave similarly, then not having duplicate code makes perfect sense.
If two things just _happen_ to behave similarly (at first), it may be a hasty generalisation to immediately refactor them to use the same code.