News for hackers. Stuff that matters.
Re:Unit Testing is Overrated (2020) by UK-AL on Thursday April 07, 2022 @07:18AM (#30943023)
Because that seems like they're doing things backwards...

You should know what result you want before you even start writing the code.

Re:Unit Testing is Overrated (2020) by pydry on Thursday April 07, 2022 @07:26AM (#30943091)
>You should know what result you want before you even start writing the code.

In theory, but IME about 50% of bugs end up being specification bugs at the high level anyway.

Once you drill down and start writing unit tests on lower levels to imitate higher level APIs that % only goes up.