2 ms·
I know because monitoring tools tell me when bugs occur, because exceptions are thrown. And I know because the code doesn’t run if you pass on a dict instead of
by IgorPartola 6y ago
I know because monitoring tools tell me when bugs occur, because exceptions are thrown. And I know because the code doesn’t run if you pass on a dict instead of an int. Statically typed languages have type systems that are by necessity strict but in a language like Python you don’t need to worry about whether your variable is a uint8_t or a uint16_t unless you specifically care about that. And more complex bugs like passing a list with the wrong number of members is not going to be caught by the type checker.
- HotHotLava 6y agoOnce a bug starts causing exceptions, it's no longer undetected. Then it becomes part of the post-deployment "fallout".
- Too 6y agoYou still need to worry whether an user_id-argument is int, str or maybe even uuid, though.