Home > Archive > Java Help > March 2004 > very simple java programs
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
very simple java programs
|
|
| David Walker 2004-03-30, 2:40 pm |
| 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 2004-03-30, 2:40 pm |
| "David Walker" <nospam@nospam> schreef op di, 30 mrt 2004 18:29:28 GMT
in news:4069bca4$0$63622$bed64819@news.gradwell.net:
> 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?
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
| |
| Casey Hawthorne 2004-03-30, 10:33 pm |
| 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 2004-03-31, 4:58 am |
| On Tue, 30 Mar 2004 18:29:28 -0000, "David Walker" <nospam@nospam>
wrote or quoted :
>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.
| |
| Sanjay Goel 2004-03-31, 6:38 am |
| wEEdpEckEr wrote:
> "David Walker" <nospam@nospam> schreef op di, 30 mrt 2004 18:29:28 GMT
> in news:4069bca4$0$63622$bed64819@news.gradwell.net:
>
>
> 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
Checkout IBM developerworks
http://www-106.ibm.com/developerwor...a/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
| |
| Shane Mingins 2004-03-31, 5:45 pm |
| "David Walker" <nospam@nospam> wrote in message
news:4069bca4$0$63622$bed64819@news.gradwell.net...
> 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.....
>
>
>
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
--
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
|
|
|
|
|