General
- Campsite Rule
- Code Over Comments
- Keep It Simple, Silly
- Log Only What's Needed
- Non-Defensive
- Robustness Principle
- YAGNI - You Ain't Gonna Need It
Always leave the codebase better than you found it.
Comments should be used to add description where it cannot be added in code.
The KISS principle is the idea that you should try to keep things as simple as possible, but not simpler.
Ensure that anything the application logs is either at the right log level or has a useful purpose.
While being defensive for error scenarios can be a good practice, doing it by default without understanding the scenarios that could create an error tends to lead to lots of unneeded code.
Be conservative in what you send, be liberal in what you accept.
Do the simplest thing that could possibly work.