News for hackers. Stuff that matters.
Re:Uncle Bob and Silver Bullets (2017) by lgleason on Monday July 04, 2022 @01:36PM (#31979742)
Do you practice TDD? That is usually where the long methods start to become an issue.
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.