Indent  Indent

go to home page feedback about the unmaintainable code essay full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish ©2000-2009 Roedy Green, Canadian Mind Products

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
CMP logofeedback Please email your feedback for publication, errors, omissions, typos, formatting errors, ambiguities, unclear wording, broken/redirected link reports, suggestions to improve this page or comments to Roedy Green : feedback email
mindprod.com IP:[65.110.21.43]
viewYour face IP:[38.107.191.104]
You are visitor number 11.