4 ms·
It could actually be the case that seat-belts make drivers more complacent but the key difference in the case of coding is that you won't die if you make a typo
by cryptica 7y ago
It could actually be the case that seat-belts make drivers more complacent but the key difference in the case of coding is that you won't die if you make a typo in your code. If designed correctly, your tests will catch it anyway.
- Verdex 7y agoTherac-25 [1] disagrees with your statement. Although to be fair, the programmer didn't die. The patients did. [1] - https://en.wikipedia.org/wiki/Therac-25 https://en.wikipedia.org/wiki/Therac-25
- cjfd 7y agoYour tests? You should despise tests if you want to be consistent with the attitude described in your first post. In the mean time I will just keep using my strongly typed language and, of course, also automated tests. Thank you very much.
- eru 7y agoThe selling point of types (and type inference) is that they save you from having to write half your tests. And of course, lines of code that you didn't have to write are less likely to have bugs in them.