Software Engineering

5 Anti-patterns

What you MUST avoid (but we've all done)

🍝

Spaghetti Code

Tangled flow, jumps (GOTO), and chaotic dependencies. Impossible to maintain without breaking something.

🌩️

God Object

A class that "knows everything" and "does everything". Thousands of lines and infinite responsibility.

🔢

Magic Numbers

Hardcoded values without context.
if (status == 3) ... (What is 3? Error? Success?)

👻

Poltergeists

Classes with no life of their own (e.g., excessive Utils or empty Managers) that only invoke methods from others.

🔨

Golden Hammer

"If you have a hammer, everything looks like a nail". Using the same technology (e.g., Web) for EVERY problem.

logo xeland314
Avoid technical debt