Future proofing
A well-written code base is a pleasure to work with. A poorly organized and brittle code base usually ends up as legacy code and hinders innovation. So how can you reduce the chances of your application being considered as legacy? Here are some recommendations:
- Django deprectations: Deprectations tell you whether a feature or idiom will be discontinued from Django in the future. Since Django 1.11, they are quiet by default. UseÂ
python -Wd
 so that deprecation warnings do appear. - Code reviews: Ensure high code quality and encourage best practices in reviews.
- Consistent Formatting: Use a code formatter like black before committing code to reduce review time
- Increase code coverage: Write more tests, especially unit tests.
- Type hinting: Use type hinting to perform static analysis of Python 3 code and reduce the number of test cases.
- Configuration management: Have strong version control and other configuration management practices to ensure replicable environments and painless rollbacks...