Source code reading

E

Einar Buffer

Hi,

My apologies if this isn't the wrong place to ask this question. If so,
could someone please advise me to where I should be asking it? Thank you!

The question is: what open source Java project would you recommend for
reading some Java source code, as a learning experience? I don't have much
experience in reading other people's code, so the project should be of
limited size and complexity. Any and all suggestions are welcome!

Kind regards,
Einar
 
E

Einar Buffer

Einar Buffer said:
Hi,

My apologies if this isn't the wrong place to ask this question. If so,
could someone please advise me to where I should be asking it? Thank you!

Uhm, correct that to 1) if this _is_ the wrong place or 2) if this isn't the
_right_ place. I ain't got no talent for doing no writing, it seems...
 
R

Roedy Green

The question is: what open source Java project would you recommend for
reading some Java source code, as a learning experience? I don't have much
experience in reading other people's code, so the project should be of
limited size and complexity. Any and all suggestions are welcome!

Presumably you have some experience in another language. If for
example you had written an SQL engine before in C, you might look for
an SQL implementation in Java since you already know roughly what the
code SHOULD be doing.

I think the trick is to find something where you already have a pretty
good idea of how the project works.

You are going to have to learn Ant anyway, so you might start there.

see http://mindprod.com/jgloss/ant.html
 
R

Roedy Green

The question is: what open source Java project would you recommend for
reading some Java source code, as a learning experience?

there is the JDK. It would be very instructive to figure out how
Swing works for example, or ANY of the classes you are using.

I had a some poking around in the serialisation classes to satisfy a
curiosity itch the other day.
 
C

Chris Uppal

Einar said:
The question is: what open source Java project would you recommend for
reading some Java source code, as a learning experience? I don't have much
experience in reading other people's code, so the project should be of
limited size and complexity. Any and all suggestions are welcome!

XOM might be suitable, especially if you already know a bit about XML (so you
know the problem domain).

http://www.cafeconleche.org/XOM/

It might be too big for you at your current stage (although, since it uses lots
of small classes and lots of comments, it looks bigger and more complicated
than it really is). As far as I can see, it's well designed and cleanly
implemented.

-- chris
 
D

David N. Welton

Roedy said:
there is the JDK. It would be very instructive to figure out how
Swing works for example, or ANY of the classes you are using.

I had a some poking around in the serialisation classes to satisfy a
curiosity itch the other day.

This is probably unlikely to be very important for most people, however:

You want to be careful looking at the Sun code if might ever be
interested in helping out with "Free Java" projects like Apache's
Harmony, GNU Classpath, GCJ, Kaffe, etc. because you will be "tainted".

You can, OTOH, look at GNU Classpath all you want, and even use the code
in many cases. And they've arrived at 95% coverage of J2SE, last I
heard, so they're more than likely to have what you're interested in
looking at.

--
David N. Welton
- http://www.dedasys.com/davidw/

Linux, Open Source Consulting
- http://www.dedasys.com/
 
T

Thomas Hawtin

David said:
You can, OTOH, look at GNU Classpath all you want, and even use the code
in many cases. And they've arrived at 95% coverage of J2SE, last I
heard, so they're more than likely to have what you're interested in
looking at.

Why would looking at LGPL code taint you any less than looking at Sun's
disclosed source?

Tom Hawtin
 
E

Einar Buffer

I appreciate the interesting suggestions made so far. I will certainly take
a look at them all, and hopefully find something that I am able to
understand and learn from.

A bit more background on myself, just in case I'm lucky enough to receive
even more suggestions: I am a CS major, with three years experience coding
C# (business + data layer) after that. I have some knowledge of design
patterns, and would like to learn more.

Thanks,
Einar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top