News for hackers. Stuff that matters.
Re:Why Today's Python Developers Are Embracing Type Hints by tmarice on Sunday September 28, 2025 @05:01AM (#45402849)
Type hints in Python add a great amount of visual noise to the code, and I actively avoid them wherever possible. If static typing is a must, use a language where static typing is not an afterthought, and let Python be Python.
Re:Why Today's Python Developers Are Embracing Type Hints by ctxc on Sunday September 28, 2025 @05:10AM (#45402898)
I guess one man's noise is another man's treasure :P
Re:Why Today's Python Developers Are Embracing Type Hints by corwinxpro on Sunday September 28, 2025 @06:07AM (#45403170)
Indeed, I almost can't read untyped python code these days. It just feels like "what the hell is going on here?" and "what is this object?" ever so often. Sorry to say that but most people who write python just aren't good API designers, or software engineers in general, and type hints can at least help others get a vague idea of what the intent was.
Re:Why Today's Python Developers Are Embracing Type Hints by chrysoprace on Sunday September 28, 2025 @05:52AM (#45403100)
Would you rather deal with a little visual noise or a runtime exception that you could've caught before code got to production? For me it's about tradeoffs, and so far the tradeoff has been well worth it.
Re:Why Today's Python Developers Are Embracing Type Hints by mixmastamyk on Wednesday October 01, 2025 @12:49AM (#45434331)
We have a reliable codebase with tests, pyflakes, sentry, etc. Very few issues make it to prod, though a few might make it to staging.

That said, I’m looking into the stubs.