7
Back to Training Grounds
4.8

Anti-Patterns and Code Smells

God class, spaghetti if-else, primitive obsession, feature envy, shotgun surgery, over-engineering, anemic model, singleton abuse

Introduction

Anti-Patterns and Code Smells

A design pattern is a proven solution. An anti-pattern is a proven trap β€” it looks reasonable but leads to pain. A code smell is a surface symptom that an anti-pattern may be hiding underneath.

This lesson covers the ones you'll see most often in backend code. For each one: what it looks like, why it happens, what breaks, how to fix it.


1 / 10
1 / 10 β€” Introduction