• 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...
    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...
    Knowledge duplication happens when the same codified knowledge is found in multiple places. The...
    It happens when developers avoid creating their own fundamental types to deal with domain...
    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...
    It happens when a certain function within a module needs to call 📞 functions from other modules...