PDA

View Full Version : //comments...



doubleanti
09-24-2001, 07:15 PM
comments are for the programmer... no? so... how many of you... like me... hold your comments so sacred that you wouldn't give your source to just anyone...? i do... for sake of me typing something personal that relates [somehow] to code...

any ideas? thx!

DavidP
09-24-2001, 07:18 PM
occasionally...some times...about half the time...maybe...

no-one
09-24-2001, 07:46 PM
my code is mine! if i give it away i take out anything personal... and some important comments so no body can understnd it but me. AHHAHAHHAHHAHAHAHAHAHAHAAAA!!

Fordy
09-24-2001, 07:47 PM
Oh yeah...

I hardly ever put comments in excpect if I have to stand back and map the program flow when debugging.....

Due to this I must spend at least 30-60 minutes scratching my head when revisiting old code. I suppose this is due to me not having a proper teacher who would have forced me early on to use helpful things like comments. Books are good to learn at your own speed, but damn, they are lax on some points!!

no-one
09-24-2001, 07:52 PM
actually i really don't need comments to understand my code anymore... well not to often anywayz

Fordy
09-24-2001, 07:54 PM
>>actually i really don't need comments to understand my code anymore... well not to often anywayz

Good for you.... Its still martian to me at first glance :p :p

no-one
09-24-2001, 07:55 PM
well don't forget im given daily shots to cause my brain to grow and retain more.

doubleanti
09-24-2001, 07:56 PM
yeah... speaking of which... i usually don't remember why or how i did whatever i did three months of now, whenever now is... hmmm... well, and we'd all like to assume everything we code is black box... but no-one's is as black box as mine! [either i'm bragging, or me and no-one have similar programming... muahahaha]

YANK!___MER!!!

no-one
09-24-2001, 07:59 PM
hmmm... bragger?

doubleanti
09-24-2001, 08:00 PM
yes'm... but i'll reshielth my shielth-oriented attacking stick back in it's shealth...

no-one
09-24-2001, 08:36 PM
hmm... now your speaking jibberish to throw me off.

doubleanti
09-24-2001, 08:59 PM
yes'm... but i'll reshielth my shielth-oriented attacking stick back in it's shealth...

no-one
09-24-2001, 09:15 PM
>yes'm... but i'll reshielth my shielth-oriented attacking stick back in it's shealth...

oh yeah since you put i that way... duh why didn't i see that before silly me.

doubleanti
09-24-2001, 09:24 PM
probably cuz you're silly... silly you...

Govtcheez
09-25-2001, 06:07 AM
If anyone else is going to read my code, I delete all the comments and change every variable to 1 or 2 letters, depending on how many there are.

Drewpee
09-25-2001, 06:38 AM
I just change my comments to jibberish, add goto's every few lines and occssionally throw in recursive loops that count to the line number they're called from...
Potentially, I have too much spare time.

-KEN-
09-25-2001, 06:46 AM
I never figured out that comments are actually helpful...I used to think they were just a waste of time...now I wish I hadn't. dmanit! my code for half my stuff makes NO SENSE. I have no clue what half of it does.

Govtcheez
09-25-2001, 06:54 AM
Yeah, and just think what it'd be like for someone else to go through it...

Seriously, since most of my coding is done in a business environment, it's not really considered great practice to put personal notes in the comments...

nvoigt
09-25-2001, 09:23 AM
Exactly. Business environment makes you comment your files
thouroughly, but very technical and neutral. Almost sterile.
But it helps a lot !

Drewpee
09-25-2001, 09:58 AM
Ya, there's only two of us programmers here, but we try to maintain revision histories for all common utility files, so we can remember which one of us changed something last. We also put in alot of comments for future understanding.

Cheeze-It
09-25-2001, 02:31 PM
Originally posted by Govtcheez
If anyone else is going to read my code, I delete all the comments and change every variable to 1 or 2 letters, depending on how many there are.

Ack! I hate one-letter variables! I can't stand
them... And what's worse, I hate the excuse people
use to justify them. "It saves time." Oh come on!


int t;

int time;

Difference < .5 seconds

Nobody's time is that valuable.

gamegod3001
09-25-2001, 02:41 PM
I realy don't care about how the code is commited or not commited. All I care about is how well it is formated. Since horbily fomated code is hard to read.

I rerly commit my code, and the commites are usely consit of

// this does not work
or
// this should use something else that does not work

doubleanti
10-01-2001, 10:50 PM
write a program called : auto_obfuscate... v -5.87...