Sometimes it’s better to have something else handle those cases.
Tag Archives: clean code
Code that changes together should reside close together.
Finding code shouldn’t require a search party.
Don’t repeat code logic in the comments.
Logic should appear in only one place.
Follow the campsite rule.
Leave it better than when you found it.
Business words make better names.
Use domain-specific types.
Practice the SOLID principles for cleaner code.
Write software that is loosely couple with high cohesion.
Build to last.
Will your code stand the test of time?
Use less magic.
The code should communicate the intent of the developers.
Write code in English.
You don’t speak in code, but you can make the code speak to others.
This is a technique that can replace your if/else and case statements.