My Principles of Forth Programming


1. When a word definition is longer than two lines, it is probably too complex.
   
2. If a word handles more than 3 values on the stack, it is likely to be too complex.

3. If a word definition contains more than one control structure, then it may be too complex.

4. If you get stuck, simplify the problem.

5. Hard problems are usually solved while not sitting in front of the computer.

6. Use short, meaningful names, keep a thesaurus within reach.

7. Well written code reads like English, as spoken by Yoda.

8. Local variables are a device to make overly complex code look simple, don't use them.

9. Writing simple code is hard and takes time.

10. Starting from scratch is always an option.

11. The key to elegant and simple code is constantly rewriting it.

12. Once you understand, apply and appreciate these principles, abandon them and follow your instinct.