Today we continue in our series examining mock-object code smells.
Test doubles are a powerful but easy-to-misuse tool for design. In this episode, we look at some tell-tale signes that mocks aren't being used effectively.
Revisiting the idea of "referential transparency", today we look at some unforseen side-effects of a method that modifies its arguments.
Naming things is hard, and it's difficult to come up with hard-and-fast rules for it. But it can be helpful to learn from examples of real-world naming decisions that led …