How to Program
Jan. 16th, 2009 04:06 pm- Get a pencil and paper.
- Get an eraser.
- Consider what instructions are available.
- Consider what the program is to do.
- Determine a major operating instruction.
- Write it down. (It may not be the first one in the final program. It probably will not be.)
- Consider what the program is to do again.
- Determine an operating instruction which must precede or follow the one you have written.
- Write it down.
- Go on in this way.
- Do not be afraid to write instructions in front of those you have already written.
- Do not be afraid to erase what you have written, all or part.
- When first writing instructions do not hesitate to leave addresses in them temporarily blank. Do not fail to go back and fill in these blanks before you consider the program finished.
- Go over the program carefully at your desk, testing its action mentally on the several possible cases it must handle.
- Test the program on the computer with test data which will take it through the several cases.
From Programming the IBM 1620: the hands-on approach by Eric Weiss (1965), pg. 46