Categories
Programming

Writing tests first

I never thought I’d say that writing failing unit tests first could be a good thing to do. I grew up with Design by Contract, where we design our component and its interface and write the tests and implementation separately. In that world the tests and implementation would ideally be written by different people, though […]