News for hackers. Stuff that matters.
Re:What Should We Do to Prevent Software from Failing? by dnautics on Tuesday May 21, 2019 @10:30AM (#19970462)
Static typing doesn't help you if your software doesn't crash but does the wrong thing (like the Boeing). In that case not even dimensional analysis helps you, because by my understanding that code was really stupid.

I find that if you're only documenting via types, that's a problem. You should also document by writing documentation.

Re:What Should We Do to Prevent Software from Failing? by yaccz on Wednesday May 22, 2019 @02:24PM (#19983975)
I dont think anybody argues that types replace documentation. However, documentation without types tends to get repetitive and requires you to come up with ways to structure it properly. Turns out, you can encode a lot of information into a type and now it can be automatically verified and frees you to write documentation for things that can not be expressed in types.