News for hackers. Stuff that matters.
Re:Stamping the joy out of collectors by zeta0134 on Saturday April 17, 2021 @06:12PM (#26847884)
Here come the traumatic memories of doing If/Then/Goto on TI-Basic, not understanding the Else or End tokens at all. Turns out each If/Then opens a new stack frame, and because I was never closing them with the corresponding tokens, memory slowly filled while the program ran. You could therefore get a high score of exactly 203 on my PONG clone before it crashed.

Good times! But seriously, take a few minutes to learn your tools properly if you use them more than once, it'll make things so much easier. :)

Re:Stamping the joy out of collectors by devenblake on Saturday April 17, 2021 @08:16PM (#26848642)
Ah, I remember this!

Lbl A

If 1=1

Then

Goto A

Will always crash after a couple seconds. Used to show it to my friends sometimes as a gag but it sucked to have to work around it.

(TI-BASIC uses = for equality comparison (iirc this includes comparing strings(?)) and -> as a single arrow symbol (STO on the keypad) for variable assignment (5->A for example is the same as A = 5 in Python).)