Here are a few links to Clean Code talks at Google dealing with unit tests. Pretty interesting and useful information.
Don't Look for Things
Law of Demeter
He teaches that in a constructor you should ask for what you need and don't look for things. Meaning, don't pass in a user object when what you really need is a username and password.
Unit Testing
No comments:
Post a Comment