
Code Smells
"Why is it bad?" and "How to fix it?"
October 26, 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...October 11, 2025Ever tweak a rule and suddenly touch 7 classes, 4 configs, and 3 tests? Thatโs the โshotgun...September 13, 2025I turned my latest clean-code notes into a short LinkedIn carousel you can save and share. Each...January 7, 2023The middle man is a class that has several methods which act as passthrough ๐ methods (they...January 7, 2023The long parameter list code smell ๐ happens when method signatures require long lists of...December 28, 2022Knowledge duplication happens when the same codified knowledge is found in multiple places. The...December 19, 2022It happens when developers avoid creating their own fundamental types to deal with domain...December 10, 2022This code smell happens when we add functionality that isn't really needed but we believe will be...December 4, 2022Long functions are not bad per se. Functions and classes that do more than one thing (and are, as...November 26, 2022It happens when a certain function within a module needs to call ๐ functions from other modules...