Click to See Complete Forum and Search --> : Need Help Reading Old Code. Can you help me?


David2010
May 1st, 2010, 09:40 PM
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

ajhampson
May 2nd, 2010, 02:55 PM
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.

dlorde
May 3rd, 2010, 05:44 AM
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 :rolleyes:

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

ajhampson
May 3rd, 2010, 09:42 AM
If you come over and paint my house, I'll think about it :rolleyes:

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 (http://www.codeguru.com/forum/showthread.php?t=496717))! I'm going to have to stop posting when my sense of humor is absent! :D

keang
May 3rd, 2010, 10:23 AM
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. :D

dlorde
May 3rd, 2010, 01:19 PM
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. :D

Oops! hopefully he navigates as well as he reads his own code :D

If you want to increase your success rate, double your failure rate...
T. J. Watson

David2010
May 3rd, 2010, 04:39 PM
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

David2010
May 3rd, 2010, 04:41 PM
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 :rolleyes:


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

David2010
May 3rd, 2010, 04:43 PM
Dang! Your answer is better than mine too (here (http://www.codeguru.com/forum/showthread.php?t=496717))! I'm going to have to stop posting when my sense of humor is absent! :D

hahaha I read threw that topic you posted.

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