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.
[ Parent
| on HN ]
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.