Indent  Indent

Here is an email I received in response to my essay on how to write unmaintainable code.

Indent : Petter Nilsen : pni@rubicon.no : 2000-11-10

Here’s another one for the excellent unmaintainable code page.

Never use {} in an if() statement if you can avoid it, and make sure the line after the if() statement has the wrong indentation. Any maintainer who tries to figure out if the indentation is a bug in the if() statement or just a wrong indentation will come up short.

if ( fSomeStatement )
  CallFunction();
  CallFunction2();

CMP homejump to top You can get the freshest copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/feedback/unmain/indent.html J:\mindprod\feedback\unmain\indent.html
logofeedback Please email your feedback for publication, letters to the editor, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email If you want your message kept confidential, not considered for posting, please explicitly specify that.
mindprod.com IP:[65.110.21.43]
viewYour face IP:[38.107.179.212]
You are visitor number 11.