Alternatively, join us on Discord.

Your worst programming fails

Started by DJ Omnimaga, February 17, 2015, 02:15:23 am

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DJ Omnimaga

Haha that happens >.<. More recently, my fails mostly involved using the + sing instead of - and vice-versa. I was wondering why Mana Force was only doing collision detection on one half of the screen then found out why XD.

gtemples31415

One of my codes was to make a program to tell you what codon corresponded to what amino acid... I used variables for each letter, so if you put in, like,  CUG, you would also get the results for CGU ad UGC and GUC and so on... Yeah, I really should've used strings...

123outerme

I know a number of times I've accidentally cleared a line then replaced it from memory, and it didn't work.
Also, one time, something in my code was being skipped (can't remember what), so I just put in 0/0 on the line after the one I wanted it to read, and it fixed. I don't remember why that fixed it. It didn't even throw an ERR: DIV BY 0.

Snektron

That's the wonders of TI probably :P
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


Duke "Tape" Eiyeron

Quote from: 123outerme on March 25, 2015, 08:46:11 pm
I know a number of times I've accidentally cleared a line then replaced it from memory, and it didn't work.

God praise On+^ from zStart for that.

DJ Omnimaga

Quote from: 123outerme on March 25, 2015, 08:46:11 pm
I know a number of times I've accidentally cleared a line then replaced it from memory, and it didn't work.
Also, one time, something in my code was being skipped (can't remember what), so I just put in 0/0 on the line after the one I wanted it to read, and it fixed. I don't remember why that fixed it. It didn't even throw an ERR: DIV BY 0.
For the first error do you mean the 2nd+Enter thing? I hated when I replaced an entire line of code (sometimes 2 KB long when I was using map data) with the latest homescreen entry. TI should add an option to disable 2nd+Enter in the program editor or a confirm box. Same for when you clear large lines of code.

As for your 2nd problem this sounds like an End instruction was missing somewhere or you forgot to use Then, Else and stuff. I had similar things happen to me for that reason. However, I remember that in OS 1.12, there was also a glitch with  Then that caused ERR:SYNTAX if you added : before that instruction.

So this code would work:
If A=2
Then
B+1->B:0->A
End

But the following would not:
If A=2
:Then
B+1->B:0->A
End

While you are not supposed to use two : symbols in succession, that error was inconsistent because it worked fine with everything else. This was also annoying when our programs were still not finished and in progress, because sometimes we move code around and when debugging we would rather not have strange errors like this come in the way. Another oddity that still remains is how omitting : after a Delvar still works, but I hope TI won't fix that one since it lets us save some bytes.

Powered by EzPortal