DEV Community

Discussion on: Copy And Paste is violation law of DRY?

Collapse
 
cjbrooks12 profile image
Casey Brooks

Kent C Dodds has been pushing the "AHA" principle lately: Avoid Hasty Abstractions.

Code duplication is less of a problem than implementing the wrong abstractions. It's pretty easy to DRY up repeated code later on once you've figured out how you're actually repeating it. It's much harder to extract the wrong abstractions into the right ones.

Collapse
 
coreyoconnor profile image
Corey O'Connor

Haha I like the idea! Thanks :)