by ReflectedImage · 3y ago · 0 comments
Static typing is something you use for performance reasons primarily.
If you want to catch errors with static typing you need Haskell or Rust levels of support for it. C# / Java / C++ don't make the grade.
That is not how to decrease the complexity of reasoning about a Python program.
What you should do instead is break the program up into smaller microservices.
Errors that would be caught by static type checking are exceptionally rare when you do commerical development in dynamically typed languages.
You right now are complaining about a problem that only exists with inside your own head.
> Errors that would be caught by static type checking are exceptionally rare when you do commerical development in dynamically typed languages.
Those kinds of errors are not rare at all.
Dynamically typed languages tend to be simpler and easier to use. This means on the whole they have less bugs than their static typed counter parts.
The real issue with dynamically typed languages is that their performance sucks. (That and according to this thread people not having a clue on how they are properly used. You can't just use the same development techniques as you use in a statically typed language. It's different.)