Re: Last Ninja Programming Language
- From: BlackJack <blackjack@xxxxxxxxxxxx>
- Date: Sun, 14 May 2006 08:08:43 +0200
On Fri, 12 May 2006 20:39:12 -0700, Doctor wrote:
* Two character limit of variable names
So when 88 unique variables just aren't enough (not including arrays).
It's not the number of variables, it's the heavy constraint on the names
itself. You can't use very expressive names if they are limited to two
characters. Programs tend to be much more understandable if the
variables names tell what their values represent. Two character
abbrevations become ambigious very quickly in any non-trivial program.
Especially if they are all global.
* No support for structured programming (procedures, while loops, etc)
If then structures are supported, and as I said you can get wedges to
go more complex.
But ``IF``/``THEN`` has to fit into one BASIC line. That's quite
limited.
* Consequently no local variables, only global
Can be emulated by storing variable assignments directly into memory
using pokes, while keeping global variables in the regular structure of
BASIC.
Poking locals into memory helps even more to write unreadable programs
than just two character variable names. And to allow locals for recursive
calls you start adding a "stack pointer" to the PEEKs and POKEs, right?
* No complex data types
Depends on what you define as complex.
Anything that's not a basic type i.e. string, floating point number,
integer or an array of any of the three basic types.
* Fscking line numbers
True, there aren't any proceedural calls to be had, but it does work.
Mandatory line numbers and procedural calls are different issues. Even
without procedural calls programs would be more readable if you just put
labels in front of parts that can be jumped to instead of line numbers
everywhere. ``GOSUB MoveEnemy`` is much clearer than ``GOSUB 2770`` and
it's easier to reuse subroutines in other programs without the need to
renumber parts if the line numbers conflict.
I remember a program that had a BASIC editor without line numbers where
one can write "nice" source code with many newlines, proper indention and
labels that "compiled" such a program into compact BASIC V2. Just can't
remember the name…
Ciao,
Marc 'BlackJack' Rintsch
.
- Follow-Ups:
- Re: Last Ninja Programming Language
- From: Anders Carlsson
- Re: Last Ninja Programming Language
- From: White Spirit
- Re: Last Ninja Programming Language
- References:
- Last Ninja Programming Language
- From: Kobe
- Re: Last Ninja Programming Language
- From: scoutski
- Re: Last Ninja Programming Language
- From: John Selck
- Re: Last Ninja Programming Language
- From: Anders Carlsson
- Re: Last Ninja Programming Language
- From: scoutski
- Re: Last Ninja Programming Language
- From: Anders Carlsson
- Re: Last Ninja Programming Language
- From: scoutski
- Re: Last Ninja Programming Language
- From: Anders Carlsson
- Re: Last Ninja Programming Language
- From: Doctor
- Re: Last Ninja Programming Language
- From: MagerValp
- Re: Last Ninja Programming Language
- From: Doctor
- Last Ninja Programming Language
- Prev by Date: Re: 6510 upgrades
- Next by Date: Re: Last Ninja Programming Language
- Previous by thread: Re: Last Ninja Programming Language
- Next by thread: Re: Last Ninja Programming Language
- Index(es):
Relevant Pages
|