Cyndi's Code Critic Corner

Bug Squad 3: Where Code Goes to Die

Today we're reviewing the infamous Bug 3-1, a particularly pesky problem that's been plaguing our codebase since last Tuesday.

Cyndi here, Code Critic Extraordinaire, and I'm about to dissect this bug with my trusty Debugging Tool 3000.

Join me after the jump for a deep dive into the heart of Bug 3-1.

Read on »

Code

function buggy_function() {
  // Code that will never work
  var x = 5;
  var y = x + 1;
  return x + y;
}

This is the infamous code that's been causing all the problems. It's like a bad joke that won't die.

Next up: Bug 3-1 Fixer

Discussion Forum

Discuss this bug on the Code Critic Forum: Discuss