June 2010
Intermediate to advanced
328 pages
7h 51m
English
I do write documentation and tests, and I use source control and other good habits for any code I want to use more than once. But I also write code that is truly ad hoc, such as a one-time test of an API function to remind myself how to use it or an SQL query I write to answer a user’s question.
A good guideline for whether code is really temporary is to delete it immediately after you’ve used it. If you can’t bring yourself to do that, it’s probably worth keeping. That’s OK, but that means it’s worth storing in source control and writing at least some brief notes about what the code is for and how to use it.
Read now
Unlock full access