Click here to Skip to main content
16,004,540 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: Legacy Code Documentation Pin
RickZeeland31-Jul-24 7:43
mveRickZeeland31-Jul-24 7:43 
GeneralRe: Legacy Code Documentation Pin
jeron131-Jul-24 7:54
jeron131-Jul-24 7:54 
GeneralRe: Legacy Code Documentation Pin
RickZeeland31-Jul-24 8:14
mveRickZeeland31-Jul-24 8:14 
GeneralRe: Legacy Code Documentation Pin
jeron131-Jul-24 8:27
jeron131-Jul-24 8:27 
GeneralRe: Legacy Code Documentation Pin
0x01AA31-Jul-24 9:01
mve0x01AA31-Jul-24 9:01 
GeneralRe: Legacy Code Documentation Pin
kmoorevs31-Jul-24 9:16
kmoorevs31-Jul-24 9:16 
GeneralRe: Legacy Code Documentation Pin
Greg Utas31-Jul-24 10:36
professionalGreg Utas31-Jul-24 10:36 
GeneralRe: Legacy Code Documentation Pin
trønderen31-Jul-24 11:31
trønderen31-Jul-24 11:31 
kmoorevs wrote:
you/they are doing something 'clever', then documenting/commenting is encouraged.
I maintain as a strong rule: 'Clever' code should be avoided, if at all possible. If it can be rewritten in a more readable way, do so -- even if timing of that specific loop shows that it takes 40% more time. Most likely is is 0.01% of the total run time for the application.
Comments may or may not get updated, but the code doesn't lie. Laugh | :laugh:
Well ... The comment may still be the honest truth of what the code was intended to do. The code may be honest about the coder's misconceptions, or possibly his intent to impress with his 'smartness', without succeeding Smile | :)
Religious freedom is the freedom to say that two plus two make five.

GeneralRe: Legacy Code Documentation Pin
Jeremy Falcon31-Jul-24 11:51
professionalJeremy Falcon31-Jul-24 11:51 
GeneralRe: Legacy Code Documentation Pin
charlieg31-Jul-24 11:10
charlieg31-Jul-24 11:10 
GeneralRe: Legacy Code Documentation Pin
trønderen31-Jul-24 11:22
trønderen31-Jul-24 11:22 
GeneralRe: Legacy Code Documentation Pin
trønderen31-Jul-24 11:21
trønderen31-Jul-24 11:21 
GeneralRe: Legacy Code Documentation Pin
charlieg31-Jul-24 12:02
charlieg31-Jul-24 12:02 
GeneralRe: Legacy Code Documentation Pin
jana_hus31-Jul-24 15:57
jana_hus31-Jul-24 15:57 
GeneralRe: Legacy Code Documentation Pin
charlieg1-Aug-24 2:14
charlieg1-Aug-24 2:14 
GeneralRe: Legacy Code Documentation Pin
Joe Fallon1-Aug-24 7:33
Joe Fallon1-Aug-24 7:33 
GeneralRe: Legacy Code Documentation Pin
charlieg1-Aug-24 9:30
charlieg1-Aug-24 9:30 
GeneralRe: Legacy Code Documentation Pin
PIEBALDconsult31-Jul-24 17:17
mvePIEBALDconsult31-Jul-24 17:17 
GeneralRe: Legacy Code Documentation Pin
Peter Jamieson1-Aug-24 0:39
Peter Jamieson1-Aug-24 0:39 
GeneralRe: Legacy Code Documentation Pin
charlieg1-Aug-24 2:18
charlieg1-Aug-24 2:18 
GeneralRe: Legacy Code Documentation Pin
Dr.Walt Fair, PE1-Aug-24 7:26
professionalDr.Walt Fair, PE1-Aug-24 7:26 
GeneralRe: Legacy Code Documentation Pin
trønderen1-Aug-24 9:00
trønderen1-Aug-24 9:00 
GeneralRe: Legacy Code Documentation Pin
Dr.Walt Fair, PE1-Aug-24 9:12
professionalDr.Walt Fair, PE1-Aug-24 9:12 
GeneralRe: Legacy Code Documentation Pin
charlieg1-Aug-24 9:36
charlieg1-Aug-24 9:36 
GeneralRe: Legacy Code Documentation Pin
Dr.Walt Fair, PE2-Aug-24 5:16
professionalDr.Walt Fair, PE2-Aug-24 5:16 

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.