Author Topic: My First Code :)  (Read 9925 times)

0 Members and 1 Guest are viewing this topic.

Offline jojojakes

  • LV2 Member (Next: 40)
  • **
  • Posts: 31
  • Rating: +4/-4
  • Shoop da whoop.
    • View Profile
My First Code :)
« 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


Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: My First Code :)
« Reply #1 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

Offline jojojakes

  • LV2 Member (Next: 40)
  • **
  • Posts: 31
  • Rating: +4/-4
  • Shoop da whoop.
    • View Profile
Re: My First Code :)
« Reply #2 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
« Last Edit: January 20, 2010, 10:15:24 am by jojojakes »


Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: My First Code :)
« Reply #3 on: January 20, 2010, 10:25:16 am »
Lol :p nice :p
/e

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: My First Code :)
« Reply #4 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

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My First Code :)
« Reply #5 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.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline bwang

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 634
  • Rating: +30/-11
    • View Profile
Re: My First Code :)
« Reply #6 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.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My First Code :)
« Reply #7 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: My First Code :)
« Reply #8 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 (:

Offline Geekboy1011

  • The Oneironaut
  • Donator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2031
  • Rating: +119/-2
  • Dream that Awakening dream
    • View Profile
Re: My First Code :)
« Reply #9 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

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My First Code :)
« Reply #10 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline mapar007

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 550
  • Rating: +28/-5
  • The Great Mata Mata
    • View Profile
Re: My First Code :)
« Reply #11 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)

Offline jsj795

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1105
  • Rating: +84/-3
    • View Profile
Re: My First Code :)
« Reply #12 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
.
.
.
.
.

???


Spoiler For funny life mathematics:
1. ROMANCE MATHEMATICS
Smart man + smart woman = romance
Smart man + dumb woman = affair
Dumb man + smart woman = marriage
Dumb man + dumb woman = pregnancy
2. OFFICE ARITHMETIC
Smart boss + smart employee = profit
Smart boss + dumb employee = production
Dumb boss + smart employee = promotion
Dumb boss + dumb employee = overtime
3. SHOPPING MATH
A man will pay $2 for a $1 item he needs.
A woman will pay $1 for a $2 item that she doesn't need.
4. GENERAL EQUATIONS & STATISTICS
A woman worries about the future until she gets a husband.
A man never worries about the future until he gets a wife.
A successful man is one who makes more money than his wife can spend.
A successful woman is one who can find such a man.
5. HAPPINESS
To be happy with a man, you must understand him a lot and love him a little.
To be happy with a woman, you must love her a lot and not try to understand her at all.
6. LONGEVITY
Married men live longer than single men do, but married men are a lot more willing to die.
7. PROPENSITY TO CHANGE
A woman marries a man expecting he will change, but he doesn't.
A man marries a woman expecting that she won't change, and she does.
8. DISCUSSION TECHNIQUE
A woman has the last word in any argument.
Anything a man says after that is the beginning of a new argument.

Girls = Time * Money (Girls are a combination of time and money)
Time = Money (Time is money)
Girls = Money squared (So, girls are money squared)
Money = sqrt(Evil) (Money is also the root of all evil)
Girls = sqrt(Evil) squared (So, girls are the root of all evil squared)
Girls = Evil (Thus, girls are evil)
*Girls=Evil credit goes to Compynerd255*

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: My First Code :)
« Reply #13 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

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: My First Code :)
« Reply #14 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
« Last Edit: January 22, 2010, 02:26:47 pm by DJ Omnimaga »
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)