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!"
Amcleod wrote to Finnigann <=-
RE: Class request
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!"
PRINT "Hello World!\r\n"
:)
Baja, like any other language, is like a box of lego bricks. You look into the box (or read http://synchro.net/docs/baja.html) and you look
at the individual shapes/verbs and individually, they are very simple. What you, as the programmer/constructor have to do, is mentally think
of a way to fit them together so as to construct a larger, more
complex, and (presumably) more useful item. Say a wall/code-fragment
or roof/subroutine. These larger, more complex and sophisticated
pieces can in turn be combined and so on and so forth until you have a complete house/program.
Anyone who has some programming experience under their belt will find
BAJA a simple, uncomplicated language to use. There is no unusual notation (a la APL or Perl), no OOP paradigm to master (like Java), no twisted command structure (Forth).
Non-programmers who wish to learn the art are best advised to "get
stuck in" somewhere and begin coding. No, NOT with your first project being a multi-threaded IRC client. Pick something simple, and bang
away at it until it is working, then discard that and move on to
something else. It helps a great deal to get all the working code you
can from other authors, and read through, trying to comprehend how the
various bits of the code work together. It helps to get a text-bok on programing too -- unfortunately there are no textbooks that use BAJA as their example language. And I don't think anyone around here is ready
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.
PRINT "Hello World!\r\n"
:)
Forget the intro part?
# Requires Baja v2.20 or later
!include fileio.inc
PRINT "Hello World!\r\n"
# End of demo
Amcleod wrote to Finnigann <=-
RE: Class request
BY: Finnigann to Amcleod on Sat Oct 20 2001 05:21 pm
You need to find someone who actively programs in BAJA on their own
board, and ask them to do this. I am not the right person -- I can't
even test my own example programs properly!
Digital Man wrote to Finnigann <=-
RE: Class request
BY: Finnigann to Amcleod on Sat Oct 20 2001 05:21 pm
PRINT "Hello World!\r\n"
:)
Forget the intro part?
# Requires Baja v2.20 or later
!include fileio.inc
PRINT "Hello World!\r\n"
# End of demo
No, none of those other lines are necessary (there are no FILE I/O
calls, for example) and the "Requires Baja v2.20 or later" comment is inaccurate. There is nothing about Angus's example that wouldn't have worked in Baja v1.0.
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!"
Lord Steel wrote to Finnigann <=-
RE: Class request
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!"
I want to learn also. A Baja Class would be the ticket. If anyone start
a class..I'll attend it or the class lesson for the day...hey I would
even do..ere...do the lesson work sheet. =)
-ariel
A slow start to be sure. I've heard from Angus about it and DM is
already correcting code entries... (-:
Don't worry, there is no homework. althou an Offline mail reader
would help people alot.
I started re-reading the baja manual again. Each time some more seeps
in. It's just that I'm not famialar with the words of the baja langauge
to be able to write it. Hopefully some folks here that are, will take up
the task of writing a message or two about some aspect they found interesting.
Time will tell.
I wonder how
long before we drive DM and Angus crazy by posting a 20 line program that a one liner would have handled easily? =)
Lord Steel wrote to Finnigann <=-
I am still in the process of fixing my small bbs. I did not even look
at the baja docs yet. I don't think it is wise and helpful if I start asking 'weird' questions to DM and Angus about baja problems while I
can't put a 100% effort on learning. I think I have a few ideas I
wanted to try later. If someone put something baja related (snippets, tutorial, etc), I would be more than willing to try it, of course. Hey,
we would not learn if we do not try it. I wonder how long before we
drive DM and Angus crazy by posting a 20 line program that a one liner would have handled easily? =)
-ariel
What drives me crazy is when I write a 20-line program and someone shows me dumb I am by posting a one-liner to do the job! Aaaaaarrrggghhh!!! It happens all the time with Perl. Perl one-liners are an art-form!
If Angus isn't interested... he prolly wont reply. Rob is different, sometimes he's very helpful and other times he's a bit cryptic. I would imagine that a new family takes up a lot of his time. So I don't expect
him to reply with a long message about one thing or another.
However we do have a few other folks that can and do code in BaJa. Pistolgrip made a contribution already.
I intend to save all of these messages for later compilation. For other budding programmers.
If Angus isn't interested... he prolly wont reply. Rob is different, sometimes he's very helpful and other times he's a bit cryptic. I would imagine that a new family takes up a lot of his time. So I don't expect him to reply with a long message about one thing or another.
However we do have a few other folks that can and do code in BaJa. Pistolgrip made a contribution already.
Rob, he teaches by pointing you to the right direction and if you really wan to learn you will find it and then he expect you to ask the next logical question so he knows you understand.
Pistolgrip, I saw how his Baja works..wow...but I don't know how he teaches yet.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,039 |
Nodes: | 16 (0 / 16) |
Uptime: | 12:34:48 |
Calls: | 500,925 |
Calls today: | 2 |
Files: | 109,372 |
D/L today: |
1,427 files (233M bytes) |
Messages: | 305,223 |