top | item 29251196

(no title)

_Understated_ | 4 years ago

It's funny you should talk about sleep deprivation messing with your mind... I once remember trying to program a for-loop in C# about 8 or 9 years ago (I've been programming since the 90s) when my son was a baby. He'd been up and down for a couple of days as he was unwell and my sleep-addled brain wouldn't let me create a for-loop.

No matter what I tried I could not get the code to compile.

I still laugh about it now but it definitely highlights the importance of sleep.

discuss

order

mettamage|4 years ago

About 10 years ago, I once didn't sleep a night and was solving a problem with a switch statement that was 200 lines long.

The next day, well rested, I realized I could do the same thing with a for loop because I already had all the data I needed.