venerdì 15 settembre 2017

Procedural vs OOP — Sandi Metz

Breaking Up the Behemoth — Sandi Metz: "Sticking with procedures too long is just as bad as doing design too soon. If important classes in your domain change often, get bigger every time they change, and are accumulating conditionals, stop adding to them right now. Use every new request as an opportunity to do a bit of design. Implement the change using small, well-designed classes that collaborate with the existing object."