Code Critic Corner: Bug Squad 4

Where the code goes to die... or gets critiqued.

Bug 4: The Unforgivable

It's not a bug, it's a feature... said the developer.

But we all know the truth: it's a bug.

Critique:

This code is a mess of epic proportions.

It's a tangled web of spaghetti code, a never-ending maze of if-else statements, and a graveyard of forgotten variable declarations.

Fixes:

We can't even begin to fix it. It's that bad.

Next Up:

Stay tuned for the next installment of Bug Squad, where we'll critique even more code, and possibly even fix some... maybe.

Next Bug Squad