TDD Pro-Tip: Time Needs Technique

TDD pro-tip: any "time" u refer to a clock, be on the lookout. It’s a time — I just can’t help myself — to seriously microtest your way through. If you have to talk about "now", consider whether you want to be able to pass a clock rather than call the system. For the price of an additional argument, you get perfect testability. The price of resistance? Your now-based object will have to be thought about every time you place […]

TDD Pro-Tip: Time Needs Technique See Full Post