DEV Community

Discussion on: Why not write clean code?

Collapse
 
arne_mertz profile image
Arne Mertz

Nice article!
Joke #3 has some truth to it. Too many devs add a design pattern and complicate things although it's not needed. The justification usually is "it's in the GoF book, so it must be good!"
The result can be a code base containing literally hundreds of singletons (been there...)
Another reason to write not-so-clean code is writing prototypes, spikes and other throwaway code.
I'm on the way to give a 3-day course on clean code right now - if I may I'll insert one or two of the points inn this article.

Collapse
 
tamasrev profile image
Tamas Rev

Yes, sure, you can use these points :)