Just Posting up some stuff i wrote.
A Java Based Stopwatch and a Visual Basic StopWatch.
The java one is much cooler
Also a dos based arithmetic calculator.
Again, tell me what you think and post up errors, suggestions and other stuff
Just Posting up some stuff i wrote.
A Java Based Stopwatch and a Visual Basic StopWatch.
The java one is much cooler
Also a dos based arithmetic calculator.
Again, tell me what you think and post up errors, suggestions and other stuff
Last edited by BloodLust_89; Sep 3, 2006 at 02:20 AM.
where is the code for the java stop watch? I wanted to get a look at the code.
I like the java version, quite simply yet sophisticated,and the code pretty straightforward
The code is in the zip file. StopwatchSrc.txt
Blood lust it would help if I did not have to decompile your java code.Originally Posted by BloodLust_89
Next time please include the source.
I have within me the blood of kings....take me to the leader of your world.
The source is within both the zip files.
Nice app,
Try and keep your methods below 40 lines. When a method has to go above 40 lines then that should be a flag to say you need to make it more OO.
I have within me the blood of kings....take me to the leader of your world.
Then your program becomes too chatty. meaning lots of method calls all over the place. It not easy to find a good balance between good design and performance.Originally Posted by editor
Break up the Stopwatch into a more OO design and sprinkle some time-stamps over key areas and see what happens. I would think that the performance would not be impacted.Originally Posted by leoandru
Caveat -: If you run it on an old 386, I would agree that performance maybe an issue. However, if you run it on a new box it would be unnoticeable.
I have within me the blood of kings....take me to the leader of your world.
The java one is visually appealing, as usual.
Code comment : I see nothing wrong with it, design-wise that is. The stopwatch constructor is easily read and does not need to be broken down. I would recomend breaking it down whenever the logic gets difficult to follow even if efficiency breaks down. Also I ran it a couple times and no bug detected.
Let's act on what we agree on now, and argue later on what we don't.
Black men leave Barbeque alone if Barbeque don't trouble you