Author Topic: Introducing myself  (Read 11432 times)

0 Members and 1 Guest are viewing this topic.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Introducing myself
« Reply #15 on: November 18, 2010, 12:04:40 am »
If TI-Basic is like a really slow and crippled version of Python that can never be compiled, then Axe is like a super fast, awesome, easy-to-use version of C (or C++ or C#, etc.) that, due to its sheer awesomeness, can make incredible games (grayscale and ultra-speed!  Sprites!), but isn't so good at math.  (But with great power comes great responsibility - Axe can cause RAM clears if you aren't careful, and you will probably clear your RAM numerous times during debugging.  It can also probably be harnessed to deliberately kill your calc, although it hasn't happened to anybody I know.  So just back up frequently, keep everything in Archive and use DoorsCS's homerun feature to run programs directly from archive). 

Edit: And assembly is like coding with butterflies.  http://xkcd.com/378/

Accidentally rated your post down, Michael, so I rated it up instead.

Anyway, you'll get used to the RAM clear screen very quickly. For me, the first week of Axe was straight RAM clears while I learned the syntax. Now, I still get RAM clears almost every day I use Axe, but that's because I always forget to add exit conditions for my loops :P
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

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: Introducing myself
« Reply #16 on: November 18, 2010, 01:06:55 pm »
Anyway, you'll get used to the RAM clear screen very quickly. For me, the first week of Axe was straight RAM clears while I learned the syntax. Now, I still get RAM clears almost every day I use Axe, but that's because I always forget to add exit conditions for my loops :P
Normally if I'm not sure if my loops will work, I'll do this:
Code: [Select]
While / Repeat stuff
Return If getKey(15)
...
End

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Introducing myself
« Reply #17 on: November 18, 2010, 01:51:54 pm »
Yeah... lesson number 1: Always, always, always, include an escape clause in your code if you're uncertain as to what'll happen.

I hate infinite loops.
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Introducing myself
« Reply #18 on: November 18, 2010, 04:11:32 pm »
i do the same as zTrumpet universally in most of my axe programs ^^ Its a lifesaver

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: Introducing myself
« Reply #19 on: November 18, 2010, 07:09:24 pm »
Yeah same, but also be careful because if you forget parhentesises sometimes it will still get stuck in an infinite loop. I think something like Repeat K=2 and getkey(15) will not work.

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Introducing myself
« Reply #20 on: November 18, 2010, 09:15:23 pm »
Repeat K=2 or getkey(15)
...
end


will work
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________

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: Introducing myself
« Reply #21 on: November 18, 2010, 09:28:38 pm »
Ah, ok, weird, I swear there was a way to do it which would cause the getkey(15) to be skipped, you had to put more parenthesizes to fix it.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Introducing myself
« Reply #22 on: November 18, 2010, 09:33:52 pm »
Yeah... lesson number 1: Always, always, always, include an escape clause in your code if you're uncertain as to what'll happen.

I hate infinite loops.

Yeah, I forget to do that quite often :P It's caused me to have to re-write programs multiple times after I have to force a RAM clear. For example, I had to write Builder four times because I kept throwing it into loops while it was in RAM. Switching to Doors CS7 was a lifesaver.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Happybobjr

  • James Oldiges
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2325
  • Rating: +128/-20
  • Howdy :)
    • View Profile
Re: Introducing myself
« Reply #23 on: November 18, 2010, 09:34:57 pm »
Ah, ok, weird, I swear there was a way to do it which would cause the getkey(15) to be skipped, you had to put more parenthesizes to fix it.

Getkey(15) is one command. it doesnt check itself like getkey=15

If you did K=2 and getkey=15
that would fail
K=2
if true it would result as 1
now to go on.  1 and getkey.
if any getkey that will result as true. so 1.
1=15.  that is never true. so the statement will never be true.

you would need.  if k=2 and (getkey=15)
or if you are iffy about it if
((K=2)and(Getkey=15))
« Last Edit: November 18, 2010, 09:36:01 pm by happybobjr »
School: East Central High School
 
Axe: 1.0.0
TI-84 +SE  ||| OS: 2.53 MP (patched) ||| Version: "M"
TI-Nspire    |||  Lent out, and never returned
____________________________________________________________