CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Join Date
    Jun 2009
    Posts
    100

    Post Need Help Reading Old Code. Can you help me?

    I found some old code on a cdrom that had to be at least 4 years old.

    It was an old pong remake I had made when I was younger.

    I wanted to publish it on my website as a sort of old memory.

    Sadly thought the code is 420 lines of code and it is MESSY.

    Of course I now a LOT more about Java and I would consider this structuring of code to be unacceptable now.

    I had every intent to restructure the code however I can't read it anymore. It looks like I just hacked it together in any way that worked. Knowing now that I coded that badly in the past is not only upsetting but just downright disturbing.

    Can you help me decode this mess of code so I can restructure it?

    Or if its that bad should I just redo it?

    Link to the code: http://www.megaupload.com/?d=WEEBL1P3

  2. #2
    Join Date
    Jun 2007
    Location
    Aurora CO USA
    Posts
    137

    Re: Need Help Reading Old Code. Can you help me?

    If this is your code and you can't understand it, I'd suggest you just rewrite the whole thing. I don't know if anyone here has time to read through your "messy" code and figure it out for you.

    Don't worry too much about how bad code you wrote in the past looks. The sign of a good developer is that you are learning and improving all the time. It's also a good sign that you can look at your own work and find it lacking.

  3. #3
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Need Help Reading Old Code. Can you help me?

    You can't figure out some rubbish code that you wrote, so you'd like us to do it for you?

    If you come over and paint my house, I'll think about it

    Rewrite and revise. Do not be afraid to seize what you have and cut it to ribbons ... Good writing means good revising...
    W Strunk Jr
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  4. #4
    Join Date
    Jun 2007
    Location
    Aurora CO USA
    Posts
    137

    Re: Need Help Reading Old Code. Can you help me?

    Quote Originally Posted by dlorde View Post
    If you come over and paint my house, I'll think about it

    Rewrite and revise. Do not be afraid to seize what you have and cut it to ribbons ... Good writing means good revising...
    W Strunk Jr
    Dang! Your answer is better than mine too (here)! I'm going to have to stop posting when my sense of humor is absent!

  5. #5
    Join Date
    May 2006
    Location
    UK
    Posts
    4,473

    Re: Need Help Reading Old Code. Can you help me?

    Quote Originally Posted by ajhampson
    Originally Posted by dlorde
    If you come over and paint my house, I'll think about it

    Dang! Your answer is better than mine too (here)!
    It's only a better answer if the OP doesn't take him up on the offer. Would you trust someone who can't even figure out the code they wrote only 4 years ago to paint your house.
    Posting code? Use code tags like this: [code]...Your code here...[/code]
    Click here for examples of Java Code

  6. #6
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Need Help Reading Old Code. Can you help me?

    Quote Originally Posted by keang View Post
    It's only a better answer if the OP doesn't take him up on the offer. Would you trust someone who can't even figure out the code they wrote only 4 years ago to paint your house.
    Oops! hopefully he navigates as well as he reads his own code

    If you want to increase your success rate, double your failure rate...
    T. J. Watson
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  7. #7
    Join Date
    Jun 2009
    Posts
    100

    Re: Need Help Reading Old Code. Can you help me?

    Quote Originally Posted by ajhampson View Post
    If this is your code and you can't understand it, I'd suggest you just rewrite the whole thing. I don't know if anyone here has time to read through your "messy" code and figure it out for you.

    Don't worry too much about how bad code you wrote in the past looks. The sign of a good developer is that you are learning and improving all the time. It's also a good sign that you can look at your own work and find it lacking.
    ok. I suppose I will just redo it and then call it old. hahaha

    Kinda seems like its cheating though... hahaha

  8. #8
    Join Date
    Jun 2009
    Posts
    100

    Re: Need Help Reading Old Code. Can you help me?

    Quote Originally Posted by dlorde View Post
    You can't figure out some rubbish code that you wrote, so you'd like us to do it for you?

    If you come over and paint my house, I'll think about it
    hm.... I suppose I can take you up on that offer.

    Where do you live? hehehehe.

    Wait... How BIG is your house???

    Are you going to provide the paint???

    hahahaha

  9. #9
    Join Date
    Jun 2009
    Posts
    100

    Re: Need Help Reading Old Code. Can you help me?

    Quote Originally Posted by ajhampson View Post
    Dang! Your answer is better than mine too (here)! I'm going to have to stop posting when my sense of humor is absent!
    hahaha I read threw that topic you posted.

    I am glad we still have a sense of humor.....

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured