Live data from Hacker News

Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

ticalc.org

61–70 of 93 posts

Re: Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

#61

Do you think Boris can still be reached under pickledcherry668@yahoo.com ?

Completely off-topic, but I recall hearing that Boris spent some time in Japan before Anthropic, learning to make miso paste the traditional way while living there. Interesting to see that he's been interested in lacto-fermentation for decades now.

Re: Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

#62
post #37

The Basic was SO BAD that I had to learn Z80 assembly to make anything good. Really. No sane Basic should leak stack memory just because you exited an "If-Then" block without reaching the corresponding "End". Yes that's a thing. If you use "If-Then" and the code never reaches the "End" because you used "Goto" to leave the block, a few bytes are leaked every time that happens, and eventually the program stops with "ER…

Also there are only 27 variables. Which made it hard for me to write a Snake clone until I figured out how to use Lists.

Re: Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

#64
post #3

It's funny how many software developers got into it due to being bored in class with a TI-83 and randomly trying to create programs.

That’s me with a TI-85 in 7th grade in ‘95 or so. It was effectively a portable computer that I was allowed to use and play with in most classes. Started with TI-BASIC, then discovered ticalc.org and the shell and assembly programming hacks, games, and home brew transfer cables. It effectively started my electrical engineering and computer science career. I know I’m not alone.

We had a chat program on the TI-85 over an extended (10m) link cable.

Good times, indeed.

Re: Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

#66
post #37

The Basic was SO BAD that I had to learn Z80 assembly to make anything good. Really. No sane Basic should leak stack memory just because you exited an "If-Then" block without reaching the corresponding "End". Yes that's a thing. If you use "If-Then" and the code never reaches the "End" because you used "Goto" to leave the block, a few bytes are leaked every time that happens, and eventually the program stops with "ER…

But isn't that just how the world works? As kid I got ERR:MEMORY allot while trying to create games. It was until I started to read a C book which said "We will not use goto in this book. It is a dangerous function that can lead to memory leaks. For example if you jump out of a function, said function will stay in memory because it never finishes." That was the light bulb moment for my TI-Basic problems.

For me the bad part is that the official TI-83 manual has a code example for the GETKEY function that is using GOTO to jump out of a loop.

Re: Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

#68
post #3

It's funny how many software developers got into it due to being bored in class with a TI-83 and randomly trying to create programs.

That’s me with a TI-85 in 7th grade in ‘95 or so. It was effectively a portable computer that I was allowed to use and play with in most classes. Started with TI-BASIC, then discovered ticalc.org and the shell and assembly programming hacks, games, and home brew transfer cables. It effectively started my electrical engineering and computer science career. I know I’m not alone.

+1 ti85 7th grade '95

Re: Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

#69
post #37

The Basic was SO BAD that I had to learn Z80 assembly to make anything good. Really. No sane Basic should leak stack memory just because you exited an "If-Then" block without reaching the corresponding "End". Yes that's a thing. If you use "If-Then" and the code never reaches the "End" because you used "Goto" to leave the block, a few bytes are leaked every time that happens, and eventually the program stops with "ER…

But isn't that just how the world works? As kid I got ERR:MEMORY allot while trying to create games. It was until I started to read a C book which said "We will not use goto in this book. It is a dangerous function that can lead to memory leaks. For example if you jump out of a function, said function will stay in memory because it never finishes." That was the light bulb moment for my TI-Basic problems. For me the b…

No, it's not how the world works. The warning about "goto" in C is about memory leaks due to misusing malloc/free. The issue with TI-Basic is about the interpreter using a stack for if/else/end blocks.

In normal programming languages, If-Then-Else is made up of a conditional branch to get you into either the "If" part or the "else" part, and a jump to skip you past the "else" part to the "end if" part. There is no stack used for that.

Re: Boris Cherny: TI-83 Plus Basic Programming Tutorial (2004)

#70
My "bored in class" story: In addition to plenty of stickman fighting animations, I wrote a full "Geometry" helper program which solved arbitrary triangles, did the quadratic equation (including imaginary roots), and maybe one or two other things that I don't remember.

We could have a quadratic equation solver on tests, but not the other functions. I put a splash screen that said my name and "Quadratic Equation Solver" which prompted a, b, and c if you pressed ENTER. If you pressed the right button on that splash screen (sin, naturally) it would unlock the full menu.

Post reply on HN