Next: Comments Up: Some advice on style Previous: Choosing identifiers

Size and complexity

Concise, clear programs are preferable to long and over-elaborate programs. This is because, as programs become longer, they become harder to understand, and more prone to containing undiscovered bugs (not surprisingly). On the other hand, programs which have been coded in a very concise way can often be cryptic and hard to understand too. There is an elegant, and appropriate, middle road to be followed - but it's hard to give a recipe for it!


Email: Dr Simon B Jones sbj@cs.stir.ac.uk