by hmschreck · 7y ago · 0 comments
It’s fine for the algorithm to have separate logical parts, but in a function this is a violation of the single responsibility principle.
If it's contained inside the algorithm, and never done elsewhere, then it's still following the SRP to have the algorithm as a single function. This is just someone who learned a new set of principles and over applies them.
The author is still overly vague here; it's not that the algorithm has multiple logical parts, it's that it has those plus the kitchen sink.