Writing code

One can always find ways of writing clean code in an iterative manner.

When writing new code, the process usually involves something like:

  1. Write some code which ‘works’
  2. Run some test cases
  3. Go back and clean up the code
  4. Rerun the tests
  5. Further clean up the code
  6. Etc etc