5 ms·
I also maintain a large python codebase at work, typing makes things simpler. For example using pydantic 90% of serialization code just goes away. Mypy eliminat
by zerodensity 4y ago
I also maintain a large python codebase at work, typing makes things simpler. For example using pydantic 90% of serialization code just goes away. Mypy eliminates a large number of bugs. Also when working with multiple people in the same codebase typing makes intent so much clearer. The type system itself is not perfect but it's a clear improvement of not having it at all.
- arcturus17 4y agoI could not agree more. I’m fairly language agnostic but typed Python with pydantic is a joy to work with.
- ReflectedImage 4y agoI disagree, it makes things more complicated by bringing in concepts such as generics. Using MyPy will on average double your bug count per software feature. You might not think it does that. But if you actually go and measure it, the bugs go through the roof. There are studies on this. It's for subtle reasons revolving around where bugs come from in code.
- lordgroff 4y agoIt's a net benefit. I just think that we've stretched Python into all kinds of directions which should be served by actually statically typed languages.