#programming-tips
Read more stories on Hashnode
Articles with this tag
You compute and log in the same place · TL;DR: Avoid side effects. Always. Problems Coupling Testability Reusability Function...
You count collections or collections.count? · TL;DR: Chose narrow names Problems Bad Naming Solutions Accurately describe your...
You overcomplicate your code · TL;DR: Avoid Accidental complexity and bureaucracy Problems Accidental Complexity Readability Bijection...
More than one class is a mess · TL;DR: Follow the separation of concerns principle and file organization Problems Code...
You use nice words to excuse bad code · TL;DR: Don't excuse bad code. Write a clean one! Problems Readability Solutions Rewrite the code and delete...
Don't abuse this fancy operator · TL;DR: Use comma operator just for loops Problems Readability Hidden Defects Solutions Avoid operator...