Hacker News new | past | comments | ask | show | jobs | submit login

I was fresh out of high school and decided to learn computers while I waited for the University entrance exam results. I joined the course about a month late but I was determined to catch up. One day I was alone in the lab trying to run a QBasic code I had written. Everything was Ok except for one line. The interpreter kept pointing to that line and I just didn't get why. I went over my text books several times, and the syntax I had used was correct.

After about an hour, I got depressed and my thoughts went all over the place. "It's karma! You see that 'little' lie you told a couple of years ago about not being responsible for knocking moms pot of soup over? Well, the spirits are paying you back now. Your code is fine boy. But your sins cause it not to work. Maybe you should confess when you get home". Luckily for me, a friend walked into the lab and saw me slouched and with a long face. "What are you coding?" I pointed to the offending line. He looked at it for a few seconds and said "it seems fine... Ah! line 1O should be 10." He corrected it, pressed Shift + F5 and like magic it worked. Now whenever I write code I always put a slash across the zero to indicate it's 0 and not O.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: