by Carlos Ble | Apr 7, 2013 | Agile, Clean code, Software Development
Value objects can contain methods. Otherwise they are just anemic models. Those methods prevent the feature envy code smell and ease refactoring. They manipulate object internals promoting cohesion and low coupling. But don’t forget about the Open/Closed...
by Carlos Ble | Apr 7, 2013 | Agile, Clean code, Software Development, Test Driven Development
Writing quality code is about satisfying the expectations of the reader. And the reader might be yourself a couple of months later. Let me tell you a mistake a made recently. I was test-driving a few classes and one collaborator was a stack. But I only needed the...