sabotai
06-06-2004, 09:52 PM
I'd tell myself to COMMENT YOUR DAMN CODE!!!
For the project I'm working on now, I'm going through one of my old, failed sport sims (programmed in Delphi). According to the timestamp of the files, it's been since lat December of 2000 since I work on this thing. Now, it's June of 2004 and I'm trying to figure out what all this code means.
Not one comment. Nothing. It's Delphi, so it's not bad (it's inherently easy to read the code), but damn, if I had just thrown in some general comments, I could go right to the part I need. Instead, I have a file open that is a little over 1000 lines of code trying to find what I need and what all this code does. (actually not that bad, I've seen far worse)
Not only that, but I'm seeing some seriously bad coding practices in this program as well. Makes me wonder, if only I knew back then what I know now, I wonder what I'd know now... :)
Lesson learned. Comment my damn code.
For the project I'm working on now, I'm going through one of my old, failed sport sims (programmed in Delphi). According to the timestamp of the files, it's been since lat December of 2000 since I work on this thing. Now, it's June of 2004 and I'm trying to figure out what all this code means.
Not one comment. Nothing. It's Delphi, so it's not bad (it's inherently easy to read the code), but damn, if I had just thrown in some general comments, I could go right to the part I need. Instead, I have a file open that is a little over 1000 lines of code trying to find what I need and what all this code does. (actually not that bad, I've seen far worse)
Not only that, but I'm seeing some seriously bad coding practices in this program as well. Makes me wonder, if only I knew back then what I know now, I wonder what I'd know now... :)
Lesson learned. Comment my damn code.