News for hackers. Stuff that matters.
Re:Test smarter, not harder (2020) by itsmemattchung on Monday October 17, 2022 @10:45AM (#33234193)
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."

Re:Test smarter, not harder (2020) by drewcoo on Tuesday October 18, 2022 @01:53AM (#33243452)
> 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?