Author Topic: Silly things you did as a noob  (Read 19679 times)

0 Members and 1 Guest are viewing this topic.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Silly things you did as a noob
« on: July 06, 2010, 01:57:26 am »
We were all noobs at one time, whether you want to believe it or not :P But making mistakes is all part of learning, so share all your hilarious mistakes here!

Ill start :)

1) I used the product() and sum() commands to access List elements instead of L1(N)
2) I used masses of pixel tests to check a tile type

Offline BrandonW

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 115
  • Rating: +38/-1
    • View Profile
Re: Silly things you did as a noob
« Reply #1 on: July 06, 2010, 02:02:47 am »
I wrote Windows for the TI-81.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Silly things you did as a noob
« Reply #2 on: July 06, 2010, 02:07:56 am »
Each room of Illusiat 1 used to have their very own code, all linked through Goto/Lbl, misused, resulting in ERR:MEMORYs after moving through only 20-30 rooms and making the game about 18 KB large total instead of its current 10 KB (pics included)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Silly things you did as a noob
« Reply #3 on: July 06, 2010, 02:13:43 am »
This is a great idea!

I used If inString(Str1,Str2) and inString(Str2,Str1) instead of If Str1=Str2.

1) I used the product() and sum() commands to access List elements instead of L1(N)

Just a few days ago, I had been using the combination sum(mid(list,n,1)) instead of list[n] to access list elements on an Nspire.
« Last Edit: July 06, 2010, 02:16:22 am by Deep Thought »




Offline Quigibo

  • The Executioner
  • CoT Emeritus
  • LV11 Super Veteran (Next: 3000)
  • *
  • Posts: 2031
  • Rating: +1075/-24
  • I wish real life had a "Save" and "Load" button...
    • View Profile
Re: Silly things you did as a noob
« Reply #4 on: July 06, 2010, 03:41:39 am »
I used to code in z80 on calc with no editor.  I just printed out some papers with all the complete instruction list, ram locations, bcalls, and key equates.  I then used the basic editor and typed in the hex code using the calculator to actually compute the offset for the labels, something I would have to change every time I added something new to the beginning of the code.  It was pretty cool that I was able to do that looking back on it, but wow, I was such a noob.  Lets see, this was back in... 2006 when I first discovered the assembly language.

Even worse, It wasn't until the very start of 2010 that I started using emulators or and 8xp converters.  I wasn't typing it by hand, don't think that!  I was taking the hex output from the computer assembler, copy pasting it to TI-Graphlink, sending it to the calculator, compiling it, testing it there (I didn't use emulators), and then sending it back when I wanted to upload the files to the internet.
« Last Edit: July 06, 2010, 03:43:05 am by Quigibo »
___Axe_Parser___
Today the calculator, tomorrow the world!

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Silly things you did as a noob
« Reply #5 on: July 06, 2010, 04:55:36 am »
I once made a 20 KB game in which I had over a hundred labels, many of which used If-Then statements with no End. Actually, I didn't know how to use End back then.

And come to think of it, I actually did that seven times -- six times with 20 KB text-based RPGs, and once with a Jeopardy imitation (called Leopardy) that wouldn't let you get halfway through the game because of the memory leak :D




Offline matthias1992

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 408
  • Rating: +33/-5
    • View Profile
Re: Silly things you did as a noob
« Reply #6 on: July 06, 2010, 09:05:42 am »
I used to write tremendous amounts of IF's for nealry everything. I know boolanize (if that is a word) as much as I can. ooh and you now what is cool to do in spare time? coding in eso...something languages like: whitespace, Aargh!, BrainF** and l33t.
if you ever thought assembly was hard...
MASM xxxxxxxxxx aborted | SADce ====:::::: 40% -Halted until further notice| XAOS =====::::: 50% -Units done| SKYBOX2D engine ========== 100% -Pre-alpha done. Need to  document it and extend |

~Those who dream by day are cognizant of much more than those who dream by night only. -Sir Edgar Allen Poe-

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Silly things you did as a noob
« Reply #7 on: July 06, 2010, 09:13:56 am »
Okay, the following is a VERY VERY dumb thing to do. Don't try it.

When I first got my calculator and discovered TI-BASIC, I immediately started working on that 20 KB program described above. I didn't know about groups at the time, so I saved it from RAM clears by archiving. Needless to say, I quickly found my first GarbageCollection message staring me in my face. Unlike some other newb programmers who would instinctively know it's a bad thing (which is the right idea), I thought it was interesting, and after finding that it was caused by unarchiving and archiving repeatedly, I did that, just to see the
Garbage
Collecting…

message several times a day, every day (idiot).
« Last Edit: July 06, 2010, 09:14:33 am by Deep Thought »




Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Silly things you did as a noob
« Reply #8 on: July 06, 2010, 12:03:50 pm »
Let's see.  Attached was my first game ever, and I made it about one week after I started programming.  Download and shudder at the code! ;D

On a side note, it took me a year and a half to discover loops. :P

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Silly things you did as a noob
« Reply #9 on: July 06, 2010, 12:49:38 pm »
I think it took me about 6 months, but I'm not sure anymore. If I recall, I discovered For( first, so I had stuff in my code such as

For(Z,0,1
0->Z
code
If <goes outside the screen>
Goto LBL
End

Or stuff like that x.x

Then I discovered about While/Repeat

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Silly things you did as a noob
« Reply #10 on: July 06, 2010, 03:01:57 pm »
I actually discovered other programming languages and learned a good amount about them before getting my calc. :P
The best example I have is that I always used to close my parentheses, brackets, etc.
Also, what may actually be better: I never changed the graphscreen settings. Ever. So code for drawing lines would have lots of deltaX's and deltaY's, Xmin's and Ymax's. :P
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: Silly things you did as a noob
« Reply #11 on: July 06, 2010, 03:12:45 pm »
One of my first programs was to get revenge on some kid. I wanted to make his calculator never turn off so that his batteries would last a few days. I went through the flash debugger and searched for every single 76h (halt). Then I made a program to replace them all with zeros. Here is the source:

Code: [Select]
     LD     A,00
     LD     ($02A3),A
     LD     ($08E9),A
     LD     ($0AA8),A
     LD     ($3E81),A
     LD     ($3F8F),A
     LD     ($3F53),A
     LD     ($3E68),A
     LD     ($3683),A
     LD     ($362F),A
     LD     ($3629),A
     LD     ($3623),A
     LD     ($361D),A
     LD     ($3533),A
     LD     ($3527),A
     LD     ($347F),A
     LD     ($32F9),A
     LD     ($32F3),A
     LD     ($312B),A
     LD     ($2F51),A
     LD     ($2F14),A
     LD     ($2EBA),A
     LD     ($2E79),A
     LD     ($2E5B),A
     LD     ($2E55),A
     LD     ($2E4F),A
     LD     ($2736),A
     RET
Needless to say, it didn't really work right. Not only did he not have an 83+, or os 1.16. But I don't think you can change the OS that easily.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Silly things you did as a noob
« Reply #12 on: July 06, 2010, 03:23:18 pm »
that ld a,00 should be xor a :P
And yeah, changing the OS involves writing directly to flash. Besides, not every interrupt causes low power mode. It'd be better to change every "ld a,$11 \ out (03h),a" to "ld a,$0B \ out (03h),a" (I guess nop'ing it would work too)
You probably already knew most of this :P
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

_player1537

  • Guest
Re: Silly things you did as a noob
« Reply #13 on: July 06, 2010, 03:24:15 pm »
When I first got my calc, I programmed Counting programs constantly (start at 0, and add one each time.  They later got more advanced, and after it was above 10, it would start adding 2, after 100, 3, after 1000, 4 (etc))  I would bring my calc into Mellow Mushroom (a pizza/italian place) and work on my counting programs there ^^

Then I wrote a program that converted between metric units, standard lengths, standard volume, standard weight, temperature, and time.  It ended up being over 9000!! err actually, about 9000 bytes, and was filled with labels, gotos, if Condition:Do something blocks, My metric conversion part looked like:
if StartUnit = "K"
1000->A
if StartUnit = "H"
100->A
if StartUnit = "D"
10->A
...
if EndUnit = "K"
1000->B
if EndUnit = "H"
100->B
if EndUnit = "D"
10->B
...
StartNumber * A / B ->EndNumber

All my friends were crazy about text based rpgs using over 9000 labels/gotos, I offered to make a nice looking menu system so they just have to do "Text To Display ->Str1:PrgmMENU and it would do all the menus for them, but they insisted on Disp "Line 1":Disp "Line 2":Disp "Line3":PrgmGETKEY:If A=1:goto AA:If A=2:Goto BB...etc...

Offline apcalc

  • The Game
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1393
  • Rating: +120/-2
  • VGhlIEdhbWUh (Base 64 :))
    • View Profile
Re: Silly things you did as a noob
« Reply #14 on: July 06, 2010, 03:46:29 pm »
When I was first learning TI-BASIC, I originally thought For loops meant that the code inside the loop would only be executed if a certain consition was true, for example if x was less that zero, the code inside the loop would be executed.  Thankfully, I never actually tried to write a program using this concept.