Learning JUDO

Maximum efficiency, minimum effort


2 years ago
15
Feb

Spartan programming »

I wouldnt go all the way Spartan, as I value readability more. But good idea anyway.

mnmal:

a minimal approach to programming

Strive for simultaneous minimization of your code in many dimensions:

  1. Horizontal complexity. The depth of nesting of control structures.
  2. Vertical complexity. The number of lines or length of code.
  3. Token count.
  4. Character count.
  5. Parameters. The number of parameters to a routine or a generic structure.
  6. Variables.
  7. Looping instructions. The number of iterative instructions and their nesting level.
  8. Conditionals. The number of if and multiple branch switch statements.


A Theme By Tyler Molamphy. Powered by Tumblr.