S SDDO Notes · IE BCSAI 2025
04 · Foundations

Bad Practices & Code Smells

A smell is a surface symptom that something deeper is wrong. Smells don't prove a bug — they prove a maintainability problem. Refactor when the cost of the next change outweighs the cost of the cleanup.

The catalog you should know

SOLID

The principles you refactor towards:

When (and when not) to refactor

The trigger is friction, not aesthetics. Refactor when:

Don't refactor:

Make the change easy, then make the easy change. — Kent Beck.

What to remember at exam time

Source · Slides + Reference
Bad Practices — slides · Code Smells — reference
PPTX PDF