Skip to content

Comment on Dumped on by Data: Scientists Say a Deluge is Drowning Researchparent

Comments

I don't want to start a flame war, but I think static typing is overrated.

I like being able to see function signatures in a header file.

In Python or Matlab, I have to read the implementation to see what types it wants. To me, having collections of type signatures in a separate file is a huge boon when I have to come back to code I haven't seen for a while - it's a 10,000 foot view of what the code does that helps jog my memory - and it's guaranteed to be accurate, unlike documentation.

To the extent that static typing supposedly prevents bugs, I agree that it is overrated. My neutron transport solver I wrote in Haskell had plenty of god damn bugs after I got it to compile, thank you very much (perhaps a very deep Haskell-fu is required to attain the mythical "neutron transport solver that works right the first time" - in any case I realized that compiler-aided bug prevention is not a low-hanging fruit in Haskell, so I lost interest).

That was a long-winded way to say that I feel lost and alone without function signatures, and that this preference is possibly only quasi-rational.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.