I have a school assignment where I have to 'build upon' a program somebody
else's program and add 'concepts' not implemented in the original
application (should not be longer than a few pages - tutor has to read god
knows how many students').
Frankly it would be easier to do something from scratch, but the whole
objective is to extend code written by somebody else.
Googled my way around but could not come across anything which was simple
enough to warrant extending. I am desperately trying to dig out something
like a basic tcp scanner that doesn't implement a GUI or threading, etc.
Any links, clues, anything?
Pretty please.....
wEEdpEckEr - 30 Mar 2004 19:59 GMT
> I have a school assignment where I have to 'build upon' a program
> somebody else's program and add 'concepts' not implemented in the
[quoted text clipped - 10 lines]
>
> Any links, clues, anything?
I have written a very simple one to one chat program, it really sucks.
;-) Basicly it does very few things: reads a portnumber, nickname and
server-address from a db (very easy to replace with hardcoded var's),
and based on wheather you start up client or server from the menu, it
tries to connect to the server on the given port, or listens to the
port. The nickname is used to conversate. You can also close the
connection (wauw) in order to start a new one. Simple enough for you? If
interested, mail me, (take my nickname at pandora dot be).
greetz
<T!M> aka wEEdpEckEr
Sanjay Goel - 31 Mar 2004 12:09 GMT
>> I have a school assignment where I have to 'build upon' a program
>> somebody else's program and add 'concepts' not implemented in the
[quoted text clipped - 22 lines]
> greetz
> <T!M> aka wEEdpEckEr
Checkout IBM developerworks
http://www-106.ibm.com/developerworks/views/java/tutorials.jsp
It has a tutorial on "Building a Java Chat Server" and accompaning code.
This has pretty basic code and you can add additional functionality like
creating the GUI for the client, sending private message, creating multiple
chat rooms etc.
You will need to register with IBM developerworks to access the tutorial
(Which I would suggest you to do, as this site has got pretty good
resources)
Sanjay
Casey Hawthorne - 31 Mar 2004 03:24 GMT
The book "The ART of JAVA" by Herbert Schildt and James Holmes has
quite a few examples that could be enhanced.
- recursive-descent expression parser
- implementing language interpreters in JAVA
- download manager
- email client
- crawling the web
- rendering HTML
- statistics, graphing
- financial applets and servlets
- AI-Based problem solving
Regards,
Casey
Roedy Green - 31 Mar 2004 10:25 GMT
>Frankly it would be easier to do something from scratch, but the whole
>objective is to extend code written by somebody else.
check out the code written in Java available with source at
http://mindprod.com/products.html
--
Canadian Mind Products, Roedy Green.
Coaching, problem solving, economical contract programming.
See http://mindprod.com/jgloss/jgloss.html for The Java Glossary.
Shane Mingins - 31 Mar 2004 22:25 GMT
> I have a school assignment where I have to 'build upon' a program somebody
> else's program and add 'concepts' not implemented in the original
[quoted text clipped - 11 lines]
>
> Pretty please.....
On top of the examples people are posting ... I would look for something
that has Unit Tests written in JUnit that test the behavior of the existing
code.
That way when you add new features to the code you can run the tests and
make sure that you have not broken anything.
Also writing a test first for your feature and making it pass will ensure
that your feature behaves as it should.
Have a look at http://flea.sourceforge.net/TDD_in_a_nut_shell.pdf
How simple an example are you after? At http://www.objectmentor.com/PPP is
some source code you can download ... look in the source for A programming
Episode - BowlingGame ... and perhaps you could start with that ... add
features like muliple players to a game ... a GUI. The thing is that there
are tests there as it was an example of developing code test-first.
If you are interested, the author posts on comp.object and
comp.software.extreme-programming where could post questions, not to mention
he would probably reply to an email. One of his missions in life is to
educate programmers on how to produce better quality software so he is very
approachable.
HTH
Shane

Signature
It's like when Obi-Wan Kenobi had Luke Skywalker try lightsaber dueling with
a blast helmet on. He wasn't
recommending that Luke go into combat blind; he was just trying to get Luke
to work on one specific set of skills in his Jedi repertoire. John Brewer
Jera Design http://www.jera.com