DEV Community

Cover image for I "Love" Anti-patterns

I "Love" Anti-patterns

Levi Albuquerque on June 09, 2018

Everyone talks about design patterns, but getting to know the other side of the force can be as enlightening as visiting the old good friends. I ...
Collapse
 
rafalpienkowski profile image
Rafal Pienkowski

Nice article. It could be a great start to book "Design Anty-Patterns". Who knows, maybe it would be so popular as GoF "Design Patterns"

Collapse
 
maxart2501 profile image
Massimo Artizzu

Nice article.

I can't say more because I don't want to discover how much guilty I am of these patterns πŸ˜‚

Collapse
 
tetsuoii profile image
tetsuoii

Nice article, and I want to interject that design patterns have a tendency to inspire bad programmers to wrap all their crap in layers of worthless noise, so please just write CODE that does what it should, and stop trying to be clever.

Collapse
 
gj262 profile image
Gaibhinn McSeafrees

My favorite term for the gold plating phenomenon is "Polishing the turd". This is very useful in those drag out meetings you mention as in "STOP! we are just polishing the turd". It may be construed negatively though. So use with caution. Are you comparing your product to a turd? Or just using a delightful metaphor to move things the along. :D

Collapse
 
lukebarratt profile image
Luke Barratt

Some parts of your code become obscure as you don't actually know how they work.

THIS. I copied some code once for a JS slider game and was then asked why I'd done it like that. It was embarrassing. Plus when I actually understood the code it made me a better developer.

Collapse
 
levimoreira profile image
Levi Albuquerque • Edited

Exactly! We can learn a lot from copy and pasting, we just need to take some time to understand the code :)
Thanks for reading ;)

Collapse
 
jreina profile image
Johnny Reina

I appreciate the reference!

Collapse
 
simonesanfradev profile image
Simone Sanfratello

Very nice article!
But imho "Copy and paste programming" is a subset of "Big ball of mud"

Collapse
 
levimoreira profile image
Levi Albuquerque

It is indeed :) I just highlighted because it's so common :)
Thanks for the reading!

Collapse
 
levimoreira profile image
Levi Albuquerque

Nice name "Katamari anti-pattern" :) It's interesting how these things keep popping up in projects right?