Hacker News new | ask | show | jobs
by Zircom 1242 days ago
Doesn't really count as a product launch, but my freshmen year of college in my first ever programming class we had to present an app we designed to the rest of the class.

I'd designed a small little casino game that had a few different games(roulette, poker, etc), and at some point in time a couple of nights before it was due I somehow managed to fuck something up and when it was displaying the results, the string somehow had the number repeated over and over and over with it running off the screen. Like "The wheel stopped on 66666666666666666666666". I had no idea what the fuck I had done and for the life of me couldn't chase the bug down, not that I put much effort into it because I didn't really have the time given the other 4 finals I had to be studying for.

So I changed the string generating function slightly to append the result + 200 spaces instead of just the result, so the repeating digits past the first one would all just get pushed off the edge of the screen and not be visible.

Got a 100% and a fun little email exchange with my professor when he saw the print statement, he thanked me for the laugh and wished me well hoping this would be the first of many last minute hacks in my career.

1 comments

to be honest, that's a rather funny bug indeed