7
TIL my loop variables were the reason my site kept crashing at 2am
I spent 3 nights debugging a script that only broke when nobody was watching, turned out I was using a global counter inside a for loop and it was doubling up on every request after the first one. Has anyone else had a bug that only shows up under weird conditions like that?
1 comments
Log in to join the discussion
Log In1 Comment
richard_shah20d ago
I always blamed the server, but this makes me see timing bugs differently.
5