10
ihakker
8y

Oops!! I just forgot to increment a loop variable in a while loop. ended up in an infinite loop :(

Comments
  • 3
    Happened to me a couple of times. So now I immediately write the incrementing part when I open my bracket.
  • 2
    I know when I've done that usually when my laptops fan starts freaking out. Force quit or Command-C to the rescue! Luckily I've never pushed that mistake to a production environment.
  • 2
    yep, been there - had to quickly close the browser before it all fell over
  • 2
    I am guessing we have all done that at least once. Right?
  • 1
    bad luck is that.. when u hadn't saved ur program before running it...!
  • 1
    @Jumpshot44 yep, me a lot of times, guess I should prepare a not-to-do list while programming. Lol. xD
Add Comment