Scan barcode
A review by annguyen98789
Clean Code: A Handbook of Agile Software Craftsmanship by Robert C. Martin
3.0
Must read for any serious developer. A ton of code examples in the book and tackles hard topics like concurrency as well.
Takeaways:
- Write code with care. Put thought into everything you do.
- Naming is 90% of clean code. Name your functions, classes, and variables with care. Make it readable.
- Avoid comments if you can. Your code should explain itself.
- Test everything. Test all the boundaries and follow TDD principles.
- Encapsulate as much as you can. You want "shy code". Have a clean Separation of Concerns
- Use polymorphism instead of complex if/else, switch/case blocks.
- Functions should do one thing. Error handling is one thing.
- Use consistent naming conventions. Clean code should do what you expect it to do.
- Get rid of any duplication.
Takeaways:
- Write code with care. Put thought into everything you do.
- Naming is 90% of clean code. Name your functions, classes, and variables with care. Make it readable.
- Avoid comments if you can. Your code should explain itself.
- Test everything. Test all the boundaries and follow TDD principles.
- Encapsulate as much as you can. You want "shy code". Have a clean Separation of Concerns
- Use polymorphism instead of complex if/else, switch/case blocks.
- Functions should do one thing. Error handling is one thing.
- Use consistent naming conventions. Clean code should do what you expect it to do.
- Get rid of any duplication.