[PLUG] Java book

Jason Dagit dagitj at gmail.com
Tue Jul 14 04:54:02 UTC 2009


On Mon, Jul 13, 2009 at 8:54 PM, linux-yug <linux-yug at xprt.net> wrote:

> On Mon, 2009-07-13 at 20:24 -0700, Jason Dagit wrote:
> > On Mon, Jul 13, 2009 at 3:37 PM, Daniel Herrington <herda05 at gmail.com
> >wrote:
> >
> > > All,
> > >
> > > I'm embarking on a voyage of discovery with Java and I'm looking into
> > > picking up a couple of books. Does anybody have some good suggestions
> from
> > > what they've read/used? I've been exposed to OO programming through PHP
> and
> > > Perl. Also and web resources and mailing lists would be helpful as
> well.
> >
> >
> > The best way that I've found to learn any language is to embark on making
> a
> > compiler or interpreter for the language, preferably in the language.
>
>
>
> Doesn't this require that you know assembly language???
>
> Compile to what...??
>
> Interpret to what..???


That's the beauty of the approach.  You don't compile it to an executable.
Instead you write the code that takes the representation of the program, and
processes it according to the rules of the language.

For example, you could make a data type that represents an if-statement.
You could then instantiate the if-statement and evaluate it.  First you have
to evaluate the boolean and then you pick the right branch of the
if-statement.  It's not as magical or weird as it seems.

Jason



More information about the PLUG mailing list