Index Cards for Program Flow

So this evening, I’ve been working on a pretty complex logic flow for a-project-to-remain-nameless-at-this-time. After using several sheets of paper, a whiteboard, and OmniGraffle, I finally resorted to an old favorite of mine: index cards. But this time, I used a bit of a twist.

This part of my application has three potential entry points, and two “endgame” states; I broke up each “chunk” (many represent subroutines) onto a separate index card, marking entry routines with an arrow in the corner, and endgame routines with “#END#” at the bottom. Now, I just trace execution from each entry point with every possible environment permutation. If they all eventually hit an “#END#” card, my logic is sound. :) Don’t you love index cards?

Add a Comment