in reply to Re: Hanging my head in shame
in thread Hanging my head in shame
From my own observation, the indentation style is an eyesore...Just thought I would mention this in passing: lack of indentation is more than an eyesore. It's indicative of sloppy code. While indentation is not required to get a program to run (see Obfuscation), it's a great way to view the logical structure of your code. The only reason I took the time to understand the code on the site I listed is because it was not indented. It's been my experience that code that is not indented is likely to be more buggy than normal.
Quite often, indentation can let you see at a glance large sections of code that are not applicable to what you are working on (if/elsif/else structures being great examples). Without indentation, keeping track of those sections becomes a pain and slows down your work, raises your company's costs, and, as you mentioned, is an eyesore :)
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|