Next: Comments Up: No Title Previous: Choosing identifiers

Size and complexity

Long and over-elaborate programs get no more credit (and may get less) than concise, clear programs. This is because, as programs become longer, they become harder to understand, and more prone to containing undiscovered bugs (not surprisingly). Programs which strive to be very short can often be hard to understand too. There is an elegant, and appropriate, middle road to be followed - you will find it only with experience.


Simon Jones (sbj@cs.stir.ac.uk)