The Programming Best Practices Tidbits has a lot of fantastic guidelines for writing code that are mostly language agnostic.
- From Piper [aaronmerriam]:
- It it is not in source control, it does not exist.
- It must be tested.
- Write maintainable code.
- Your code should have useful comments and documentation.
- Don't be clever. If you are writing the cleverest code you can, you won't be able do debug it later.
- Use an editor that shows you syntax errors.
- Make good commits.
- Use pull requests
- Pull requests are a great way to organize your code and let others know what you are working on.
- Adhere to pep8
- The zen of python.
- Use a framework.