News for hackers. Stuff that matters.
Re:Uncle Bob and Silver Bullets (2017) by ajuc on Monday July 04, 2022 @05:06PM (#31981787)
Unit testing pure functions is a pleasure, no matter if they have local variables.

    assertEquals(expectedOutput, f(input));
When you split them in a way that makes the local state external - you now have to handle the state in unit tests which is much more hassle.

There are no comments on this comment yet.