Page 2 of 2

Posted: Mon 29 Aug, 2005 5:32 am
by tr1p1ea
Come to think of it, i dont even remember what was in the example. I can understand if its a whole load of stupid stuff :).

Posted: Mon 29 Aug, 2005 8:35 pm
by dysfunction
kalan_vod wrote:
dysfunction wrote:Actually tr1p, your code is difficult to understand, perhaps someone should write an unoptimized, simple version, using very structured code such as

Code: Select all

While 1
getkey->K
If K=42
Then
...
End
If K=25
Then
...
End
...
...
End[quote][/quote]
after i had touched it i did this also, but it made it alot slower and bigger, and also it looked alot more complicated b/c of all the ifs thens ends etc.
I know that's a lot slower, but I think it is simpler for less experienced programmers to understand since it's structured. That's how my early code looked, anyways.

Posted: Mon 29 Aug, 2005 8:53 pm
by kalan_vod
dysfunction wrote:
kalan_vod wrote:
dysfunction wrote:Actually tr1p, your code is difficult to understand, perhaps someone should write an unoptimized, simple version, using very structured code such as

Code: Select all

While 1
getkey->K
If K=42
Then
...
End
If K=25
Then
...
End
...
...
End[quote][/quote]
after i had touched it i did this also, but it made it alot slower and bigger, and also it looked alot more complicated b/c of all the ifs thens ends etc.
I know that's a lot slower, but I think it is simpler for less experienced programmers to understand since it's structured. That's how my early code looked, anyways.
yeah it would look a little simpler, too bad i didnt save that file......someone else can do it :D