Re:The melting pot of JavaScript (2017)
by BigJono on Tuesday January 08, 2019 @05:58PM
(#18860614)
I don't see how unit testing prevents that stuff either. How do you write a unit test for a corner case if you've missed it? If you're aware of it's existence, why not just update the code to handle it?
[ Parent
| on HN ]
Re:The melting pot of JavaScript (2017)
by adrianN on Wednesday January 09, 2019 @05:01AM
(#18863618)
Quickcheck like libraries are reasonably good at finding missing corner cases in my code. It also helps if the person writing the test is different from the person writing the code and the person writing the requirement.