7 ms·
While I think writing tests for the "happy" path builds good momentum, especially for a code base with no existing tests, the real value lies in writing tests t
by itsmemattchung 4y ago
While I think writing tests for the "happy" path builds good momentum, especially for a code base with no existing tests, the real value lies in writing tests that exercise the edge cases. Guy Steele put it best:
"I spent a lot of time worrying about edge cases. That’s something I learned from Trenchard More and his array theory for APL. His contention was that if you took care fo the edge cases then the stuff in the middle usually took care of itself."
- drewcoo 4y ago> the real value lies The real value lies in testing something you would have forgotten and saving your butt. So the question is . . . where is your butt hanging out? Can you define that in a way that translates convincingly into metrics for someone who doesn't know your code?