Skip to content

Comment on What was the silliest issue you discovered during debugging?

You are viewing one comment and its replies. View all comments

Comments

  • Person before flipped a bunch of if checks to put the value before the variable (if 6==x rather then if x==6). They messed up a bunch of the <= and >= checks by forgetting to reverse them. I improved performance and fixed numerous bugs by tracking those down.

    11
    • Ah yes, yoda conditionals. Because guarding against accidentally typoing if(x=6) is worth destroying your code’s readability.

      7

Sign in to comment. Sign in