Re:Is TDD Dead? (2014)
by AnimalMuppet on Wednesday August 26, 2020 @11:53AM
(#24283613)
> "The whole program" is obviously too big.
Of course.
> "every public method or function" is obviously too small.
Why "obviously"? If it's public, someone outside the class can call it. That's an external behavior.
If the class is only consumed in the context of one code unit (module, service, whatever) then the class itself is an implementation detail.
The lexer has a clear boundary from the parser.
The issue that takes experience here is how to determine what's a unit. "The whole program" is obviously too big. "every public method or function" is obviously too small.
Just be pragmatic.