Sorry, this video is for subscribers only.

Click here to subscribe!

An Interface Design Exercise

Writing a test is partly an exercise in interface design. When coding test-first, the test defines the interface, because you have to decide how to call your production code before you actually write it. For our new “clear screen” button, this means that we need to decide how our production code knows which HTML element to monitor.

comments powered by Disqus