Simplified Clean Code Principles
Uncle Bob’s book "Clean Code" gives important advice for writing good code. Here’s a simple breakdown of these key principles:
1. No Code Comments
Rule: "Comments in code are a bad sign, get rid of them."
2. Remove Unused Code or Comments
3. Test Boundaries
4. Use Positive Conditionals
5. Follow Standards
Recommended by LinkedIn
6. Consistent Naming
Give your variables, methods, and classes clear, consistent names that make sense from the perspective of someone using them.
7. Keep It Simple
8. Use Exceptions for Errors
9. Keep Things Small
10. Improve the Code
Conclusion
These principles help you write readable, understandable, and maintainable code, benefiting everyone who works on it, including your future self. Adjust them with care as you gain experience.
This is a good read. Also try the second book in the series called "The Clean Coder".