I did it again.

Kasey Speakman - Dec 14 '18 - - Dev Community

Today I tried to run some code. It timed out with no response. A little bit later, I figured out I had inverted a boolean condition. Which caused an infinite loop.

cat rolling soccer ball infinite loop

After all these years, I still make that same mistake with booleans -- forgetting to put a not (or !) in front of a condition.

Do you have a thing that always trips you up?

/∞

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player