57
hell
7y

Took me 2 fucking days to figure out why the loop wasn't working, biggest facepalm ever.

if(iterator.hasNext()){

// some awesome code

}

Comments
  • 4
    And let me guess, someawesomecode does not contain a call to iterator.next()?
  • 8
    @disolved it does, but should be `while` instead of `if` 😂
  • 13
    @azous oh haha, I didn't catch it either 😂 thats the problem with human brains, we see things that are not really there just because we expect them to be there.
  • 5
    @disolved yeah, exactly 😂 I'm glad you missed it too 😌
  • 4
    @azous I swear to God, these are the problems that consume most of my time debugging, JUST because my brain is too lazy to render and parse the whole code 😑😑
  • 2
    @disolved 😂 I was actually 5 cm from the screen looking really paranoid for an error when i found it
  • 2
    @disolved same with me! For some reason I also thought that it was a while m. I also tend to skim through the code for trivial things
  • 1
    So this can be called as cognitive error right?
Add Comment