Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Stuff that annoys you...

Name: Anonymous 2010-09-03 12:45

when reading code not written by yourself. For example, I cannot stand it when  people use

if (condition)
    ...
else if (condition)
    ...
else if (condition)
    ...
else if (condition)
    ...
else


instead of the much more readable


if (condition)
    ...
else
    if (condition)
        ...
    else
        if (condition)
            ...
        else
            if (condition)
                ...
            else

Name: Anonymous 2010-09-03 14:28

>>8
Sorry, "feature" was probably an overloaded word.  I only meant that there are no roadblocks that force you to separate your ifs from your elses and the ability to write else if (condition) is something often intentionally mentioned during lessons about conditional statements.

And, yeah, elif and elsif did come to mind when I wrote that.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List