I was learning a new language, and decided to start with hello world. Only 7 words. I think I counted 14 bug fixes by the time I got it working.
I learnt (again) that I shouldn't program while tired, and really shouldn't learn a new language whole tired.