Unreachable

From my own code:

if ($ok) {
    // ... snip ...
    return;
} else {
    // ... snip ...
    exit;
}
// ... snip ... 50 lines of unreachable (and buggy) code

That can’t be good…

One thought on “Unreachable

  1. just pixels says:

    Just don’t touch the mouse or keyboard and everything will be $OK.

    Actually, I have tons of code like that. Usually, some weird behavior leads me to comment out or skip blocks of code until the badness goes away. Works every time!

Leave a Reply

Your email address will not be published. Required fields are marked *