Click here to Skip to main content
15,886,919 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 - how old is your code? PinPopular
Mike Hankey17-Jul-23 11:25
mveMike Hankey17-Jul-23 11:25 
GeneralRe: Code comments - how old is your code? Pin
jmaida17-Jul-23 18:58
jmaida17-Jul-23 18:58 
GeneralRe: Code comments - how old is your code? Pin
maze318-Jul-23 4:21
professionalmaze318-Jul-23 4:21 
GeneralRe: Code comments - how old is your code? PinPopular
Dave Kreskowiak17-Jul-23 11:30
mveDave Kreskowiak17-Jul-23 11:30 
GeneralRe: Code comments - how old is your code? Pin
DerekT-P17-Jul-23 23:35
professionalDerekT-P17-Jul-23 23:35 
GeneralRe: Code comments - how old is your code? Pin
PIEBALDconsult17-Jul-23 11:47
mvePIEBALDconsult17-Jul-23 11:47 
GeneralRe: Code comments - how old is your code? Pin
Slacker00717-Jul-23 12:23
professionalSlacker00717-Jul-23 12:23 
GeneralRe: Code comments - how old is your code? Pin
Gary R. Wheeler17-Jul-23 13:17
Gary R. Wheeler17-Jul-23 13:17 
We have code in our current product that was written in 2000, and the commenting has always been up to the individual. We do have a naming standard, but it's pretty relaxed (with the exception of Hungarian notation: use that, and we'll nuke your cubicle from orbit just to be sure). Our only commenting standard is for entries in our change history which are automatically extracted and collated into an HTML document by our automated build process.

My personal practice is based on something Dan Saks, former Secretary of the ISO C/C++ Standards Committee, once said: "If it can be said in code, say it in code. Otherwise say it in a comment." This means choosing expressive, meaningful names and organizing things in ways that reflect the process you're implementing. All of this is very squishy and more art than science.

All this is well and good until you throw someone new into the mix. We hired a new guy, a couple of years experience and very sharp. He had trouble with my code Confused | :confused: Roll eyes | :rolleyes: , not so much reading any particular piece of it, but getting the big picture.

He's helping us transition from SourceSafe to git source control. In the same vein he's advocating for other changes to our process, including automated code documentation. He suggested doxygen, which looked great until we discovered the doxygen application was weak. Doxygen approaches the code base as if all of it belongs to a single executable. Our product is a Windows application and several services, along with several DLL's. We found DoxyPress[^], a fork of doxygen that seems to remove doxygen's limitations. We're treating the automated documentation as a roadmap, a guide to navigating the code base. We'll see how good a job we do.
Software Zen: delete this;

GeneralRe: Code comments - how old is your code? Pin
Slacker00717-Jul-23 13:33
professionalSlacker00717-Jul-23 13:33 
GeneralRe: Code comments - how old is your code? Pin
Matt Bond18-Jul-23 3:26
Matt Bond18-Jul-23 3:26 
GeneralRe: Code comments - how old is your code? Pin
Gerry Schmitz18-Jul-23 5:33
mveGerry Schmitz18-Jul-23 5:33 
GeneralRe: Code comments - how old is your code? Pin
Mircea Neacsu17-Jul-23 14:52
Mircea Neacsu17-Jul-23 14:52 
GeneralRe: Code comments - how old is your code? Pin
Greg Utas17-Jul-23 15:35
professionalGreg Utas17-Jul-23 15:35 
GeneralRe: Code comments - how old is your code? Pin
trønderen17-Jul-23 16:16
trønderen17-Jul-23 16:16 
GeneralRe: Code comments - how old is your code? Pin
Gerry Schmitz18-Jul-23 5:39
mveGerry Schmitz18-Jul-23 5:39 
GeneralRe: Code comments - how old is your code? Pin
Gary Wheeler18-Jul-23 2:39
Gary Wheeler18-Jul-23 2:39 
GeneralRe: Code comments - how old is your code? Pin
Gerry Schmitz17-Jul-23 15:36
mveGerry Schmitz17-Jul-23 15:36 
GeneralRe: Code comments - how old is your code? Pin
Derek Hunter17-Jul-23 20:14
Derek Hunter17-Jul-23 20:14 
GeneralRe: Code comments - how old is your code? Pin
Jonas Hammarberg17-Jul-23 20:49
professionalJonas Hammarberg17-Jul-23 20:49 
GeneralRe: Code comments - how old is your code? Pin
Sander Rossel17-Jul-23 21:02
professionalSander Rossel17-Jul-23 21:02 
GeneralRe: Code comments - how old is your code? Pin
Slacker00717-Jul-23 23:40
professionalSlacker00717-Jul-23 23:40 
GeneralRe: Code comments - how old is your code? Pin
Sander Rossel17-Jul-23 23:43
professionalSander Rossel17-Jul-23 23:43 
JokeRe: Code comments - how old is your code? Pin
trønderen18-Jul-23 6:49
trønderen18-Jul-23 6:49 
GeneralRe: Code comments - how old is your code? Pin
Gerry Schmitz18-Jul-23 5:43
mveGerry Schmitz18-Jul-23 5:43 
GeneralRe: Code comments - how old is your code? Pin
Amarnath S17-Jul-23 21:06
professionalAmarnath S17-Jul-23 21:06 

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.