3 ms·
DRY should honestly just be restated as "Avoid multiple source of truth", two pieces of code that look similar but have two separate goals are not something tha
by ric2b 2y ago
DRY should honestly just be restated as "Avoid multiple source of truth", two pieces of code that look similar but have two separate goals are not something that falls under DRY unless you can pull out some common logic that actually is the same goal and can become the single source of truth for that goal.