You can help CodeWalrus stay online by donating here. | New CodeWalrus | Old (dark mode) | Old (light) | Discord server

Your worst programming fails

b/PC, Mac & Vintage Computers Started by Dream of Omnimaga, February 17, 2015, 02:15:23 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

u/Dream of Omnimaga March 25, 2015, 03:31:53 AM
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.
u/gtemples31415 March 25, 2015, 08:23:54 PM
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...
u/123outerme 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.
u/Snektron March 25, 2015, 09:17:53 PM
That's the wonders of TI probably :P
u/Duke "Tape" Eiyeron March 26, 2015, 08:14:49 AM
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.
u/Dream of Omnimaga March 26, 2015, 03:00:46 PM
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.
Website statistics


MyCalcs | Ticalc.org | Cemetech | Omnimaga | TI-Basic Developer | MaxCoderz | TI-Story | Casiocalc.org | Casiopeia | The Museum of HP Calculators | HPCalc.org | CnCalc.org | Music 2000 Community | TI Education | Casio Education | HP Calcs | NumWorks | SwissMicros | Sharp Calculators
Powered by EzPortal