
Code Smells
"Why is it bad?" and "How to fix it?"
26. říjen 2025🔸 TL;DR ▪️ Data Clumps = the same group of fields (e.g., street, city, zip, or startDate,...🔸 TL;DR A “divergent change” smell happens when a single class/module must be edited for...Ever tweak a rule and suddenly touch 7 classes, 4 configs, and 3 tests? That’s the “shotgun...13. září 2025I turned my latest clean-code notes into a short LinkedIn carousel you can save and share. Each...7. leden 2023The middle man is a class that has several methods which act as passthrough 🛂 methods (they...7. leden 2023The long parameter list code smell 👃 happens when method signatures require long lists of...28. prosinec 2022Knowledge duplication happens when the same codified knowledge is found in multiple places. The...19. prosinec 2022It happens when developers avoid creating their own fundamental types to deal with domain...10. prosinec 2022This code smell happens when we add functionality that isn't really needed but we believe will be...4. prosinec 2022Long functions are not bad per se. Functions and classes that do more than one thing (and are, as...26. listopad 2022It happens when a certain function within a module needs to call 📞 functions from other modules...