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