Click here to Skip to main content
15,907,395 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Code Comments Pin
charlieg20-Jul-15 0:30
charlieg20-Jul-15 0:30 
GeneralRe: Code Comments Pin
OriginalGriff20-Jul-15 0:37
mveOriginalGriff20-Jul-15 0:37 
GeneralRe: Code Comments Pin
W Balboos, GHB20-Jul-15 1:16
W Balboos, GHB20-Jul-15 1:16 
GeneralRe: Code Comments Pin
Daniel Pfeffer20-Jul-15 2:12
professionalDaniel Pfeffer20-Jul-15 2:12 
GeneralRe: Code Comments Pin
charlieg21-Jul-15 1:14
charlieg21-Jul-15 1:14 
GeneralRe: Code Comments Pin
Munchies_Matt20-Jul-15 0:32
Munchies_Matt20-Jul-15 0:32 
GeneralRe: Code Comments Pin
KarstenK20-Jul-15 1:11
mveKarstenK20-Jul-15 1:11 
GeneralRe: Code Comments Pin
W Balboos, GHB20-Jul-15 1:25
W Balboos, GHB20-Jul-15 1:25 
I try to use a three-tiered commentary when possible.

There's commentary through the code explaining what something does (that is trivial) and why it does it (particularly if one would not normally do it the way it's being done). Modifications to the original "working" code will also include a date in the comment.

There's a boiler plate on every method I create (or modify if VS creates it) and it will have the creation date stuff and then updates, bugfixes, etc., also with a date for the changes block.

Finally, a separate file (text) which keeps a bit of a narrative in blocks This will of course have a date and, if a version number change is made, it's up there, too. This isn't generally detailed, but will 'name names'.

The last of these is interestingly useful in that the chronology is all in one place and if things go wrong you can go back to see what you did then (and how to blame someone else).

All of these point to the same bottom line: I presume I'll have forgotten all about whatever it is I had done or was thinking if I ever need to go back there. The first person I ask for help is me . . . and comments are the only way I can answer.




"The difference between genius and stupidity is that genius has its limits." - Albert Einstein
"As far as we know, our computer has never had an undetected error." - Weisert
"If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010



GeneralRe: Code Comments Pin
Kornfeld Eliyahu Peter20-Jul-15 1:44
professionalKornfeld Eliyahu Peter20-Jul-15 1:44 
GeneralRe: Code Comments Pin
harold aptroot20-Jul-15 2:13
harold aptroot20-Jul-15 2:13 
GeneralRe: Code Comments Pin
Marc Clifton20-Jul-15 2:18
mvaMarc Clifton20-Jul-15 2:18 
GeneralRe: Code Comments Pin
Sander Rossel20-Jul-15 2:27
professionalSander Rossel20-Jul-15 2:27 
GeneralRe: Code Comments Pin
charlieg21-Jul-15 1:18
charlieg21-Jul-15 1:18 
GeneralRe: Code Comments Pin
Daniel Pfeffer21-Jul-15 1:25
professionalDaniel Pfeffer21-Jul-15 1:25 
GeneralRe: Code Comments Pin
charlieg21-Jul-15 1:28
charlieg21-Jul-15 1:28 
GeneralRe: Code Comments Pin
F-ES Sitecore20-Jul-15 2:33
professionalF-ES Sitecore20-Jul-15 2:33 
GeneralAm I alone? Pin
Kornfeld Eliyahu Peter19-Jul-15 23:41
professionalKornfeld Eliyahu Peter19-Jul-15 23:41 
GeneralRe: Am I alone? Pin
amagitech19-Jul-15 23:48
amagitech19-Jul-15 23:48 
GeneralRe: Am I alone? Pin
Kornfeld Eliyahu Peter19-Jul-15 23:54
professionalKornfeld Eliyahu Peter19-Jul-15 23:54 
GeneralRe: Am I alone? Pin
Mike Hankey19-Jul-15 23:48
mveMike Hankey19-Jul-15 23:48 
GeneralRe: Am I alone? Pin
Kornfeld Eliyahu Peter19-Jul-15 23:59
professionalKornfeld Eliyahu Peter19-Jul-15 23:59 
GeneralRe: Am I alone? Pin
Mike Hankey20-Jul-15 2:01
mveMike Hankey20-Jul-15 2:01 
GeneralRe: Am I alone? Pin
OriginalGriff19-Jul-15 23:56
mveOriginalGriff19-Jul-15 23:56 
GeneralRe: Am I alone? Pin
Kornfeld Eliyahu Peter20-Jul-15 0:00
professionalKornfeld Eliyahu Peter20-Jul-15 0:00 
GeneralRe: Am I alone? Pin
charlieg20-Jul-15 0:02
charlieg20-Jul-15 0:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.