DEV Community

Discussion on: What programming best practice do you disagree with?

Collapse
 
gsto profile image
Glenn Stovall

Sometimes small amounts of duplicate code is okay. When the alternative involves creating complicated abstractions and couplings, you'd be better off keeping it simple and having some code that does roughly the same thing in multiple places.