News for hackers. Stuff that matters.
Re:What I wish I knew when I became CTO by blackflame7000 on Wednesday February 14, 2018 @12:39AM (#16373737)
Testing is absolutely critical don't get me wrong, but you can't test what you can't predict, so there needs to be a distinction between tests that really stress the system in unknown ways vs verifying your ADD function did indeed add N consecutive numbers correctly.
Re:What I wish I knew when I became CTO by afarrell on Wednesday February 14, 2018 @06:02AM (#16374972)
> verifying your ADD function did indeed add N consecutive numbers correctly

This kinda depends on if it is a public or private (or `__private(self):`) method. If its private, no need to test it. But suppose that rather than using something in an existing library, you are bothering to write your own ADD function and expose it to the rest of your codebase. Wouldn't that indicate that your function was special enough that it should be tested?

Re:What I wish I knew when I became CTO by blackflame7000 on Wednesday February 14, 2018 @10:29AM (#16376419)
I mean yea it should be tested, but making a code change that propagates through the rest of the repository is really poor abstraction design. At that point, you might as well have one class called tester that holds pointers to everything and is about 100K lines long.