logoalt Hacker News

habineroyesterday at 6:12 AM1 replyview on HN

Same. I like the type hints -- they're nice reminders of what things are supposed to be -- but I've essentially ~never run into bugs caused by types, either. I've been coding professionally in Python for 10+ years at this point.

It just doesn't come up in the web and devtools development worlds. Either you're dealing with user input, which is completely untrusted and has to be validated anyways, or you're passing around known validated data.

The closest is maybe ETL pipelines, but type checking can't help there either since your entire goal is to wrestle with horrors.


Replies

LtWorfyesterday at 6:04 PM

You can validate user input with types using stuff like typedload (which i wrote) or similar runtime type checkers.

show 1 reply