Omnimaga

Calculator Community => Other Calculators => Topic started by: jojojakes on January 20, 2010, 10:07:34 am

Title: My First Code :)
Post by: jojojakes on January 20, 2010, 10:07:34 am
This is the first program I made eva:
Code: [Select]
Prompt I
Prompt T
If IT>9000
Then
Disp "IT>9000"
End
If IT<9000
Then
Disp "IT<9000"

 ;D
Title: Re: My First Code :)
Post by: Builderboy on January 20, 2010, 10:13:10 am
My program is better than your program ;)

Code: [Select]
Input "?",A
A/2->A
2*A->A
If A=0:Then
Disp "A=0"
End
If A=1:Then
Disp "A=1"
End
If A=2:Then
Disp "A=2"
End
If A=3:Then
Disp "A=3"
End

...

If A=1E99:Then
Disp "A=1E99"
End
Stop
Title: Re: My First Code :)
Post by: jojojakes on January 20, 2010, 10:15:12 am
Lol. What's the use of that? It doesn't even say if it's over 9000 or not.   :D
Title: Re: My First Code :)
Post by: Eeems on January 20, 2010, 10:25:16 am
Lol :p nice :p
Title: Re: My First Code :)
Post by: ztrumpet on January 20, 2010, 04:13:22 pm
Nice. 
My first program was the cylinder one in the manuel.  After that I made one to prompt for about 5 numbers and use a wierd formula on them.  It was useless! ;D
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 20, 2010, 11:09:44 pm
 My first signifiant program ever that I did myself was some sort of database of monsters or characters for a comic book-based RPG I started creating near the end of 2001, but stopped due to my growing interest toward calculators. My second one would be Labyrinth Of Illusions, a RPG that got updated with battle graphics, intro and fixed some memory leaks to eventually become Illusiat.
Title: Re: My First Code :)
Post by: bwang on January 20, 2010, 11:16:10 pm
Mine was the Sierpinski Triangle one in TI's guidebook. After I figured out how to actually program (e.g. you can't just type F-O-R for a For( token) I wrote a prime tester.
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 20, 2010, 11:31:42 pm
Oh wow I still remember in class, people who had TI-80s always asked me help to debug their programs when I realised they just typed each commands letter by letter instead of selecting them in menus x.x. I can understand on the TI-80 it can be harder to figure out, though, since all commands are in caps letter
Title: Re: My First Code :)
Post by: JoeyBelgier on January 21, 2010, 01:30:55 pm
My first program was on my TI84+ a year ago
it was meant to calculate stuff and also output the way it came to the conclusion

It was actually pretty usefull for half a year
what i could do in 1/2 minute, others needed like 5 or so (:
Title: Re: My First Code :)
Post by: Geekboy1011 on January 21, 2010, 03:16:54 pm
hmm the first actually chalenging program i wrote was a custom emnu that had a ascii border tht like changed between random math symbols it was actually really cool but totally un optimiized it was almost 1400 bytes X.x
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 21, 2010, 06:00:23 pm
I think Netham45 first program was a screen inverter. It inverted the screen pixel by pixel in BASIC. The problem though is that it was 15 KB large
Title: Re: My First Code :)
Post by: mapar007 on January 22, 2010, 12:19:57 pm
O.0

How do you do that...

(in asm it's like 15 bytes to invert the graph buffer, the screen itself might be a little harder)
Title: Re: My First Code :)
Post by: jsj795 on January 22, 2010, 01:56:36 pm
did he code for every pixel?
like,
:pxl-change(0,0
:pxl-change(0,1
:pxl-change(0,2
.
.
.
.
.

???
Title: Re: My First Code :)
Post by: Builderboy on January 22, 2010, 02:01:38 pm
Haha, i think that would be a bit faster than using a for loop XD

On a more serious note, i think the first program of consequence i ever made was a Triangle solver.  It could solve for ASA SAS SSS and ASS ;D
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 22, 2010, 02:25:01 pm
did he code for every pixel?
like,
:pxl-change(0,0
:pxl-change(0,1
:pxl-change(0,2
.
.
.
.
.

???
Yup :P. Well... I think, at least. The goal was to have it faster than actual For( loops, though, but it's super large XD

Sometimes in BASIC, when I need speed I will omit to use a For loop to display four enemies for example on the screen, to have faster speed even if at the expense of size

Good ol' times :P
Title: Re: My First Code :)
Post by: ztrumpet on January 22, 2010, 04:09:33 pm
True, that's faster than in a loop. ;D

On a more serious note, i think the first program of consequence i ever made was a Triangle solver.  It could solve for ASA SAS SSS and ASS ;D
My math teacher calls that triangle "The Donkey One" or "SSA".  Nice prog though.  My first good prog was a slope finder.  You could give it any four of X1, X2, Y1, Y2, and M and it would give you the last one.  It's 828 bytes and still on many peoples' calcs at my school. ;D
Title: Re: My First Code :)
Post by: jojojakes on January 23, 2010, 04:22:05 am
Lol internetz is down one day and this topic is full of posts. :P

I made a new program. It automatically solves Pythagoras' theorem for you :D Pity we dont use that anymore in math class :(
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 23, 2010, 04:29:51 am
Next step, a first person shooter ^^
Title: Re: My First Code :)
Post by: jojojakes on January 23, 2010, 06:03:00 am
Lol that would be epic.  :D

EDIT: Yay my respect went from -1 to 0  :)
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 23, 2010, 02:51:43 pm
With the old respect system, I had the ability to instantly raise mine to 65536 or lock it up to zero :P
Title: Re: My First Code :)
Post by: ztrumpet on January 23, 2010, 08:34:44 pm
DJ, could you make it -65536 (or -65535) if you wanted also?
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 23, 2010, 09:00:22 pm
yeah but then it would increase back
Title: Re: My First Code :)
Post by: Silver Shadow on January 24, 2010, 11:36:29 am
I wonder why mine has fallen to -2...
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 24, 2010, 02:21:04 pm
Idk, since "Respect" is now the combination of all positive and negative ratings received on every post you made, the only way to know would be to go back through your old posts then view them in topic mode to view the rating (top right corner of every post, kinda like on TI-BANK except it's a digit like on Youtube, not a red/green bar like on TI-BANK).

Allynfolksjr dropped to -19 I think :P
Title: Re: My First Code :)
Post by: Silver Shadow on January 24, 2010, 02:25:31 pm
Now it's -3...
As for Allynfolksjr, I'm not really surprised. ;D
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 24, 2010, 03:45:58 pm
Actually -2 right now. Nothing to worry about much really. if a post sounded provocative/narrow minded that sometimes happens and if you be careful it will most likely go up again soon, especially if you post a project update.

Since there are so many posts being done in one day on the forums, people tend to forget about the rating system, though.
Title: Re: My First Code :)
Post by: ztrumpet on January 24, 2010, 06:26:21 pm
I tend to rate posts a lot.  I don't like to hit the "down", but I will sometimes.  Mostly I just press "Up", "Up", and "Up". :)
Title: Re: My First Code :)
Post by: Geekboy1011 on January 25, 2010, 12:15:04 am
hmm i only rate post that are 
A.) extremely good/bad (you get the idea behind that)

B.) are updates with good news or interesting news


other than that i do forget about it X.x
Title: Re: My First Code :)
Post by: cooliojazz on January 25, 2010, 12:18:33 am
I dont think I've rated more than about 5 posts total.  I just never really think about it.
Title: Re: My First Code :)
Post by: mapar007 on January 25, 2010, 01:43:48 pm
Basically, I rate a post on the following conditions:

a) Presents an interesting and elaborated point in a discussion
b) Contains a freakin' awesome piece of code/program demo
c) the post makes me laugh
And negative:
d) The post is rude/unrelated
Title: Re: My First Code :)
Post by: DJ Omnimaga on January 25, 2010, 02:30:18 pm
I tend to like rating major project updates up mostly. UNfortunately I can't keep up with every post, though, especially these days.

For negative rating I tend to avoid rating down posts when someone says something nonsensical due to not reading something properly, though, because mistakes can happen to everyone. I only rate down if I know the person is not doing any effort or if someone is impolite or snaps on people, same for narrow-minded comments (such as this games sucks because it has too many sub programs)