News for hackers. Stuff that matters.
Re:Worst Bug Ever by untog on Monday January 21, 2013 @12:57PM (#5092685)
I made a similar error once working in Adobe Air (if I recall):

    for (x = 0; x < thing.length; x++) { }
I didn't put a "var" before the x- so Air used the window.x object, and shifted the entire contents of the window to the right by a seemingly random number of pixels.

To look at it like that, it's blindingly obvious. But it was in the middle of a whole lot of other code, and of course, the for loop ran perfectly fine.

There are no comments on this comment yet.