📏 Long Method
Une méthode de 50 lignes qu'on scroll pour la lire.
Solution : Extract Method.
🏢 Large Class
Une classe qui fait trop de choses.
Solution : Extract Class.
📋 Long Parameter List
Une méthode à 7 paramètres, imbuvable à l'appel.
Solution : Introduce Parameter Object.
👯 Duplicated Code
Le même bloc copié-collé en 3 endroits.
Solution : Extract Method / Move Method.
🔢 Magic Numbers
if (age > 65), total *= 1.20.
Solution : Replace Magic Number with Constant.
🔀 Switch Statements
Un switch sur un type, dupliqué en 5 endroits.
Solution : Replace Conditional with Polymorphism.
🧩 Data Clumps / Primitive Obsession
Des données voyagent toujours ensemble sans avoir de vrai type.
Solution : Introduce Parameter Object / Replace Primitive with Object.