top | item 45402727

(no title)

jmorenoamor | 5 months ago

Coming from Java extreme verbosity, I just loved the freedom of python 20 years ago. Working with complex structures with mixed types was a breeze.

Yes, it was your responsibility to keep track of correctness, but that also taught me to write better code, and better tests.

discuss

order

procaryote|5 months ago

Writing tests is harder work than writing the equvalent number of type hints though

dirkc|5 months ago

Type hints and/or stronger typing in other languages are not good substitutes for testing. I sometimes worry that teams with strong preferences for strong typing have a false sense of security.

mixmastamyk|5 months ago

Hints are not sufficient, you’ll need tests anyway. They somewhat overlap.

ivanjermakov|5 months ago

Writing and maintaining tests that just do type checking is madness.

Dynamic typing also gives tooling such as LSPs and linters a hard time figuring out completions/references lookup etc. Can't imagine how people work on moderate to big projects without type hints.