I post the origin question in stackoverflow, some people suggest me to post here
I've always have trouble with dynamic language like Python.
- Typo error, I can use pylint to reduce some of these errors. But there's still some errors that pylint can not figure out.
- Object type error, I often forgot what type of the parameter is, int? str? some object? Also, forgot the type of some object in my code.
Unit test might help me sometimes, but I'm not always have enough time to do UT. When I need a script to do a small job, the line of code are 100 - 200 lines, not big, but I don't have time to do the unit test, because I need to use the script as soon as possible. So, many errors appear.
So, any idea on how to reduce the number of these problems?