You should tell the objects what you want them to do instead of querying them multiple times to be able to make a decision on behalf.
[Read More]
Why should you write tests for your codes?
Some good reasons to write unit and integration tests while programming
Tests are the live documentation of the code Tests never lie since you have to update them each time business logic changes Tests help you understand how a piece of code works fast Tests help you have confidence when refactoring Tests help you quickly check the effect of new codes...
[Read More]