DEV Community

Discussion on: Which principle or saying is wrong and/or misused?

Collapse
 
ben profile image
Ben Halpern

I'll start by saying that DRY (don't repeat yourself) is not entirely untrue, but an over-simplification to the point of harm as a principle.

Some conflicting ideas with DRY is the law of leaky abstractions and the rule of three which both definitely encourage skepticism of mismanaged attempts at DRY.

I think DRY means well, but IMO is often used harmfully as an idea.

Collapse
 
deciduously profile image
Ben Lovy

Repetition is always better than the wrong abstraction.

Collapse
 
maestromac profile image
Mac Siri

It took me a while to realize this but 100%

Collapse
 
peerreynders profile image
peerreynders

"Every piece of knowledge must have a single, unambiguous, authoritative representation within a system."