Member-only story
How to use “Golf” debugging
Iterate when you are close to your target
/*
How to use leapfrog debugging
When you are first learning a coding principle or practice,
it is extremely beneficial to debug and test at every step.
Even with experience, incremental testing has certain benefits.
But like anything there is a cost.
Leapfrog development is a set of ideas and practices designed
to save you time in the long run, by tuning the number of steps
you take, and using iterative processes only at the very
end to get closer to your target goal.
With any effort, iterative processes are by far the most expensive,
precisely because you are repeating steps. It is common practice
to reduce the time of iterations as much as possible, but sometimes
you also want to get as close as you can to your final target,
before you start iterating. This may be more difficult, but if you
can pull it off, it can save tremendous time and energy.
The traditional, slow, methodical approach:
The development stack
1. Goal
2. Idea
3. Design
4. Manual Implementation.
5. Testing
6. Scripted Implementation.
7. Testing
8. Simplified Structured Program
9. Testing
10. Functional Simple…