From my own code:
if ($ok) { // ... snip ... return; } else { // ... snip ... exit; }// ... snip ... 50 lines of unreachable (and buggy) code
That can’t be good…
From my own code:
if ($ok) { // ... snip ... return; } else { // ... snip ... exit; }// ... snip ... 50 lines of unreachable (and buggy) code
That can’t be good…
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!