3 ms·
As someone who has been working in the _same_ python codebase for near a decade (off and on, it is an ancillary internal service with ~150k lines of code that d
by sethammons 7y ago
As someone who has been working in the _same_ python codebase for near a decade (off and on, it is an ancillary internal service with ~150k lines of code that does not get enough love), I speak from experience when I say that any service being maintained needs to have static typing. `def foo(bar)` - what _is_ bar?! What can I do with it? I either get to dig up and up the stack or pull out a debugger. Additionally, in python, you can iterate over a string or a list, so now you have to protect against both being passed in. Even this simple thing has caused many-o-bug in my experience. Half the tests are type validations.