laziness, impatience, and hubris | |
PerlMonks |
(Maclir)Re: (dws)Re: Perverse Unreadable Codeby Maclir (Curate) |
on Apr 26, 2001 at 10:51 UTC ( [id://75725]=note: print w/replies, xml ) | Need Help?? |
There are advantages in the: approach, mainly because if I want to throw a few more statements into the "if" block, I can do it simply. I also find having the code structured that way indicates clearly that a conditional is involved, and by seeing what the condition is, it can often provide an indication of why something is being done. For example: indicates we are dealing with low value accounts. But then again, we are talking subjective matters here. An alternative way, and in my mind just as readible, is:
As a side line, I recall being told once "Fortran programmers can write fortran programs in any language."
In Section
Perl Monks Discussion
|
|