Re: TIB: Back to TI-BASICs
[Prev][Next][Index][Thread]
Re: TIB: Back to TI-BASICs
Jody wrote:
>
> I looked at that code, one indented and one not. I could follow each
> one not to bad. You probably won't believe this, but I still like
> un-indented - especially in the calc. I tend to count how many loops
> deep I'm in, and then when I get done it's just a matter of putting
> that many ends. I guess I shouldn't get stuck in my ways since the
> rest of the world uses indents.
Heh... :-)
> The reason that I said "I tend to think I forgot something" was
> because of the way that I do things. Before I start anything I usually
> already have an idea of what everything will be like, what everything
> should do, and a pretty good idea of how to do it. When I actually go
> to write the code, I just start at the beginning and write each thing
> in the order that it appears. Take, for instance, a game where the
> user enters their name. This will be one of the first things that I
> program in a game. However, I don't want to have to input a name every
> single time the program is run until I'm finally finished. To get
> around this, I simple put a Goto 99 in front and a Lbl 99 after
> whatever I want to skip. But I'm also very careful about putting 3
> spaces in front and 3 spaces after, so I can come back and easily find
> that spot.
> :ClrHome:ClrDraw
> :
> :Goto 99
> :
> :Input Str1
> :
> :Lbl 99
> :
> :Prompt X,Y
> :ClrHome
Well, I can see that we are remarkably different in our ideas. (Nothing
wrong with that though - far from it).
I often come up with ... maybe what you could call a hint of an idea, a
tiny fraction, for example an algorithm containing some simple but
interesting math. I then think "hmmm, maybe I can use this algorithm for
something entertaining...let me see...a strategic, turn-based wargame
maybe? Yes, I could use that algorithm to simulate turn-to-turn
income/production/emigration/whatever comes to mind at the time."
After that, I start building my core algorithm. With that finished, I
think of the other parts of the program, sketch my ideas, and implement
them one by one.
In other cases I have a well-defined project, but find myself wandering
astray, so to speak. Upon starting a blackjack project I found it useful
if each player could have a steady account with a password. New project:
Make an encryption algorithm! I quickly got swallowed up in math when I
tried to find the most efficient way of doing this (processing for
example two lists of 100 elements each is faster than processing one
list of 200 elements).
With that finished, my next project became: Make a function that, given
a list, shuffles it efficiently and returns the result, again, as a
list.
Well, I am almost finished with my blackjack game now... :-)
Sometimes (often actually :-) my projects go dead because they usually
start as a challenge to myself. When I reach that certain point where I
can say "this is easy, it's downhill from now on, you've done a good
job" the challenge has been met and conquered, and I lose interest. :-/
Quite a 'disease', neh? :-)
> Now if I see a _single_ space I start wondering why its there. Did I
> forget to add a space? did I accidentally hit clear and wiped a line?
> Did I....
You're being paranoid :-)
--
Rene Kragh Pedersen
------------------------------------------------------------------
man: Why did you get a divorce?
man:: Too many arguments.
Follow-Ups:
References: