3 ms·
The lexer is a unit then. 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 p
by VHRanger 6y ago
The lexer is a unit then.
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.
- AnimalMuppet 6y ago> "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.
- deleted 6y ago[deleted]
- VHRanger 6y agoIf the class is only consumed in the context of one code unit (module, service, whatever) then the class itself is an implementation detail.
- ajna91 6y ago"every" being the operative word. The "feel" for good code that comes with experience is not reducible in practice to a set of black-and-white rules.