4 ms·
Uncle Bob gives some very bad advice. For example, he advocates passing temporary state between methods implicitly in instance variables instead of explicitly (
by layer8 4y ago
Uncle Bob gives some very bad advice. For example, he advocates passing temporary state between methods implicitly in instance variables instead of explicitly (and nonshared) via arguments and return values, increasing the statefulness of the code and creating complex ordering constraints and preconditions for method invocations. E.g. https://softwareengineering.stackexchange.com/questions/288712/clean-code-can-private-methods-rely-on-member-variables-set-by-other-private-me https://softwareengineering.stackexchange.com/questions/2887...
One can’t recommend his books with good conscience to anyone who doesn’t already have a very good judgment regarding software design and can pick out the parts that actually make sense.
- eurasiantiger 4y agoUncle Bob sees classes as animals with internal state, not as abstract structures grouping together consumable APIs and their internal workings. Calling bound functions ”methods” is perhaps a bit misleading.