Subj : Class request
To   : Amcleod
From : Finnigann
Date : Sat Oct 20 2001 10:21 am

-=> Amcleod wrote to Finnigann <=-

Am> RE: Class request
Am> BY: Finnigann to All on Fri Oct 19 2001 07:09 pm

> I am looking for something more like 'BaJa Programming 101' Take some
> basic commands and show how they can be used in programs. Even if it's
> the ever popular "Hello World!"


Am>     PRINT "Hello World!\r\n"

Am> :)

Forget the intro part?

 # Requires Baja v2.20 or later

 !include fileio.inc

      PRINT "Hello World!\r\n"

 # End of demo


Am> Baja, like any other language, is like a box of lego bricks.  You look
Am> into the box (or read http://synchro.net/docs/baja.html) and you look
Am> at the individual shapes/verbs and individually, they are very simple.
Am> What you, as the programmer/constructor have to do, is mentally think
Am> of a way to fit them together so as to construct a larger, more
Am> complex, and (presumably) more useful item.  Say a wall/code-fragment
Am> or roof/subroutine.  These larger, more complex and sophisticated
Am> pieces can in turn be combined and so on and so forth until you have a
Am> complete house/program.

Like the room full of monkeys pounding out Shakespere (eventually)?
But wouldn't said room of monkeys benefit from an understanding of the
words they were trying to couple together?

Am> Anyone who has some programming experience under their belt will find
Am> BAJA a simple, uncomplicated language to use.  There is no unusual
Am> notation (a la APL or Perl), no OOP paradigm to master (like Java), no
Am> twisted command structure (Forth).

Well I don't fall into the catagory of experience but I can follow what
is being attempted in most baja programs. Yes it can be a marvelous
tool... if given a chance.

Am> Non-programmers who wish to learn the art are best advised to "get
Am> stuck in" somewhere and begin coding.  No, NOT with your first project
Am> being a multi-threaded IRC client.  Pick something simple, and bang
Am> away at it until it is working, then discard that and move on to
Am> something else.  It helps a great deal to get all the working code you
Am> can from other authors, and read through, trying to comprehend how the


Am> various bits of the code work together.  It helps to get a text-bok on
Am> programing too -- unfortunately there are no textbooks that use BAJA as
Am> their example language.  And I don't think anyone around here is ready
Am> to _write_ one!  ;-) ---

Given that you know it would help, why not do like you did with the PERL
messages? A (a message being) chapter at a time, maybe. With more than
one person contributing.

A few minutes to wring out a short program (doesn't have to be more
useful than Hello_world.pl) Just let it examplfy some aspect of Baja.

Someone did a short one on CASE and how it would be used in some specific
application they needed. Well looking it up AND with what was written
here, I have a better understanding of it's possible uses. Lacking that,
I doubt I could have made sense of what is in the help file. (BAJA.DOC)



... Heisenberg may have slept here.
--- MultiMail/MS-DOS v0.40
� Synchronet � Bits-N-Bytes BBS - One Hellova BBS -- telnet://bnb.dtdns.net