flipwebdomains.com
Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: A Java Based Stopwatch and a Visual Basic StopWatch.

  1. #1
    Join Date
    Feb 2005
    Posts
    139
    Rep Power
    0

    Default A Java Based Stopwatch and a Visual Basic StopWatch.

    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.

  2. #2
    Join Date
    Oct 2004
    Posts
    4,778
    Rep Power
    20

    Default

    where is the code for the java stop watch? I wanted to get a look at the code.

  3. #3
    Join Date
    Oct 2005
    Posts
    310
    Rep Power
    0

    Default

    I like the java version, quite simply yet sophisticated,and the code pretty straightforward

  4. #4
    Join Date
    Feb 2005
    Posts
    139
    Rep Power
    0

    Default

    The code is in the zip file. StopwatchSrc.txt

  5. #5
    Join Date
    Jun 2003
    Posts
    159
    Rep Power
    0

    Default Decompile

    Quote Originally Posted by BloodLust_89
    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
    Blood lust it would help if I did not have to decompile your java code.
    Next time please include the source.
    I have within me the blood of kings....take me to the leader of your world.

  6. #6
    Join Date
    Feb 2005
    Posts
    139
    Rep Power
    0

    Default

    The source is within both the zip files.

  7. #7
    Join Date
    Jun 2003
    Posts
    159
    Rep Power
    0

    Default Nice code

    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.

  8. #8
    Join Date
    Oct 2004
    Posts
    4,778
    Rep Power
    20

    Default

    Quote Originally Posted by editor
    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.
    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.

  9. #9
    Join Date
    Jun 2003
    Posts
    159
    Rep Power
    0

    Default Experiment

    Quote Originally Posted by leoandru
    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.
    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.
    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.

  10. #10
    Join Date
    Sep 2004
    Posts
    1,785
    Rep Power
    17

    Default

    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.
    Music, Games, Dancing enhance the Fun Algorithm. The Fun Algorithm can be used to hack the Caring Algorithm. Children should have fun, and watch Sofia the First. Receiving Care develops care. Having fun makes it easier to give care.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •