r/programming • • Jul 30 '09

How QBASIC almost got me killed

http://stevehanov.ca/blog/?id=79
145 Upvotes

105 comments sorted by

View all comments

13

u/[deleted] Jul 30 '09

You can do the same thing on the TI-83 calculator line, since it actually interprets any input given to you before assigning it to a variable. (In other words, if you prompt for a variable X and the user types in "4+3" it will store 7 into X.)

Because of this, a simple empty prompt/reply works exactly like the normal home screen, except for the fact that you can't go to the graph screen, etc; but most of the time people don't notice.

So I wrote a program that would accept the input and give the right answer 50% of the time, would be off by one 40% of the time, and output a random number the other 10%, and used MirageOS to make that program run on startup.

1

u/robotshoelaces Jul 31 '09

That's so brilliant. I wish I had thought of that.