Spartan Programming

.NET, Java, Software Add comments

I feel good because the way I am trying to write code follows more and more the principles described on this wiki page:

Spartan programming strives for simultaneous minimization of all of the following measures of code complexity:

  1. horizontal complexity, that is, the depth of nesting of control structures, just as the total line length.
  2. vertical complexity, that is, the code length in lines.
  3. token count
  4. character count
  5. parameters that is the number of parameters to a routine or a generic structure.
  6. variables
  7. looping instruction, that is the number of iterative instructions and their nesting level.
  8. conditionals, that is the number of if and multiple branch switch statements.

Check out the post and this example!

One Response to “Spartan Programming”

  1. ImmoppyIsoky Says:

    Brilliant!

Leave a Reply



WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in