Here is an email I received in response to my essay on how to write unmaintainable code.
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();
|
|
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 | |
![]() | ||
| Canadian Mind Products | ||
| mindprod.com IP:[65.110.21.43] | ||
| view | Your face IP:[38.107.179.212] | |
| Feedback | You are visitor number 11. | |