Writing code without tests usually looks like this for me. Let me know if it sounds familiar.
The process gets a little longer when I get to working with the full stack and am looking at the browser.
Hey I’ve watched (some of) the Abelson and Sussman lectures and know that programming by wishful thinking is useful so sometimes I create functions/methods that use a not complete implementation. That looks like:
This should sound familiar to some if not many of you.
What if I told you there was a framework for automating many of those steps? Wouldn’t that be awesome?
Steps like:
It’s call rSpec people (optionally with Guard). You can create those basic objects and wishfully-thought-of functions with rSpec stubs and mocks. You can check if your code works the way you think it should with should. You can even have those steps happen automatically with guard.
I invite you to not write tests (that’s boring), automate your process. Machines should work and people should think. The fact that you have a suite of tests and documentation at the end of the day is a bonus not the point.
—R