[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: one-line programs



Harry Potter wrote:
On Jan 31, 11:47 am, lyricalnanoha
<lyricalnan...@usotsuki.hoshinet.org> wrote:
On Sat, 31 Jan 2009, Ammammata wrote:
hello (this is my first post on this ng)
several years ago... it was 1980-something, I ran on the apple (and later on
other computers) some nice one-line programs, written in basic, typically
games
the line was of course quite long, with several statements
anyone remember this?
The disk "Silicon Salad" has a slew of two-liners...

-uso.

The OP piqued my interest!  Where can I find these?

IIRC, Nibble published these by the hundreds, though most of them were
not really "games", but demonstrations.  There were even books of
one-liners published!

A line is limited to the length of the input buffer--I don't recall
the exact limit, but it's just under 256 characters, so one-liners
are very constrained.  There are several tricks for getting conditional
execution within a single line, since "IF" applies to the entire
remainder of the line.

Think of one-liners as a kind of puzzle, rather than as a useful
skill, and you've got the picture.  ;-)

-michael

******** Note new website URL ********

NadaNet and AppleCrate II for Apple II parallel computing!
Home page:  http://home.comcast.net/~mjmahon/

"The wastebasket is our most important design
tool--and it's seriously underused."