Next: J.T.W. Proof of concept #1 A superfor macro, Previous: Top, Up: Top [Contents][Index]
This document documents a new programming language written by me,
Davin Pearson (email: davin dot pearson at gmail dot
com
) called J.T.W., short for Java Training Wheels for the
sole purpose of making it easier to learn to program in Java. The
J.T.W. language has a similar syntax to Delphi, Pascal, BASIC and
JavaScript and therefore learning J.T.W. before or while learning Java
provides a less steep learning curve than learning Java from scratch.
For many reasons you might even prefer to program in J.T.W. rather
than Java. Here is why you should learn J.T.W. before or while
learning Java:
+-----+ |*.jtw| +--+--+ | v Emacs' batch mode +------+ +------+ |*.java| |*.java| +--+---+ +--+---+ | | v javac compiler v javac compiler +-------+ +-------+ |*.class| |*.class| +--+----+ +--+----+ | | | java | java V V runs the class runs the class
begin
... end
constructs are supported
instead of C-style { ... }
constructs which is more
sensible especially for novices.
main
function
: beginMain
... endMain
rather than the rather cumbersome: public
static
void
main
(String[] args) { ... }
.
classVar
,
constructor
, function
, method
and property
.
var
for clearer local
variables.
then
for clearer if
statements.
and
and or
rather than Java’s
rather cumbersome: &&
and ||
.
elseif
is supported instead of Java’s
cumbersome else
if
.
superfor
macro is presented for
enhanced BASIC-style for
loops.
See J.T.W. Proof of concept #1 A superfor macro.
Next: J.T.W. Proof of concept #1 A superfor macro, Previous: Top, Up: Top [Contents][Index]