3 ms·
Do you practice TDD? That is usually where the long methods start to become an issue.
by lgleason 4y ago
Do you practice TDD? That is usually where the long methods start to become an issue.
- ajuc 4y agoUnit 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.