DEV Community

Discussion on: Stop trying to be so DRY, instead Write Everything Twice (WET)

Collapse
 
maciek134 profile image
Maciej Sopyło

This article is really dangerous to more junior developers. Copy, paste and change some stuff invites problems, because there may be 5 developers working on one project and if all of them do it just once you have 5 repetitions of something that should be abstracted away. Developers are not monkeys, you should think if something needs abstraction before doing anything, not after you repeat it three times - otherwise you end up with maintainable piece of crap that will need to be rewritten at some point (I had to rescue such projects, it's not fun). If you spend some time actually designing the system you won't have to spew code left and right as you go.