3 ms·
> The thing with typing is that it gets hyped, but in practice, it matters very little. I guess typing is moot when all the code and the tests are written, but
by rhacker 4y ago
> The thing with typing is that it gets hyped, but in practice, it matters very little.
I guess typing is moot when all the code and the tests are written, but having types sure does help while you're writing that code and those tests.
- mharig 4y agoIt helps avoiding typos, but most are well indicated by the code highlighting of the code editor, even for Python. It helps to use the right data type when 'connecting' two objects. But it constraints the usefulness of code that can rely on the behaviour of the objects instead of the type. It clutters the code: you have to read (and write) way more text. Which makes errors more probable. It forces to think about primitive data types, so steals time maybe better spend thinking about higher data structures (list, dictionary,...) or algorithm. YMMV.