News for hackers. Stuff that matters.
Re:Dumped on by Data: Scientists Say a Deluge is Drowning Re... by neutronicus on Saturday February 12, 2011 @11:35PM (#2212067)
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.

There are no comments on this comment yet.