<aside> 💡 One key mistake which I often make while designing my programs is that I don’t run the stub and function templates before I use them. If bugs are present within these lines of code, these bugs will be replicated in lines of code which are based on the stub + function templates.

So, the moral of the story is this: KEEP TESTING THE STUBS, TEMPLATES, AND EXAMPLES BY CONTINUALLY RUNNING THE PROGRAM OVER AND OVER AGAIN WHILE YOU’RE DESIGNING THE PROGRAM. It’ll save a lot of your time (which you would otherwise spend debugging) in the long run.

</aside>


Prelude: Why are templates important?

How to Design Worlds (HtDW)

This ability to work on programs by reasoning about them at a model level is one of the things that really separates program designers for people who write code that just happens to work.