That's what unit tests are for.Scary. It means we have to be extra vigilant with larger system and functions. In the early days of C++ libraries had names like ACMECompanyRange().
So, Python won't help and it is the developers' job to watch out.
It takes a lot of time and effort to get there. Obviously best practices from C++ carry over here as well, but some python specificHow is it possible to write well-designed and maintainable Python code?
What's your favourite method?
Using modules and packages for program deccomposition.It takes a lot of time and effort to get there. Obviously best practices from C++ carry over here as well, but some python specific
- Docstrings: help a lot in clearing the intent of author and at the same time can be invoked by the users!
- Unit testing: It helps in quickly checking if any code changes are giving expected results while refactoring
- Pythonic code: this one is pretty hard and takes time. You know good python code when you see it.