Click here to Skip to main content
15,901,666 members

Survey Results

Are you a Code Hoarder?

Survey period: 24 Jun 2013 to 1 Jul 2013

Do you have difficulty getting rid of unused or obsolete code? (Suggested by Andreas Gieriet)

OptionVotes% 
inactive code can be useful in the future, so I comment it out instead of removing46340.51
Inactive code clutters up active code, so I remove it instead of simply commenting it out68059.49



 
GeneralRe: Got Git? Pin
Deus ex Machina26-Jun-13 6:22
Deus ex Machina26-Jun-13 6:22 
GeneralRe: Got Git? Pin
Marc Clifton26-Jun-13 7:21
mvaMarc Clifton26-Jun-13 7:21 
GeneralRe: Got Git? Pin
AlexCode26-Jun-13 22:14
professionalAlexCode26-Jun-13 22:14 
GeneralBoth! Pin
DaveAuld24-Jun-13 4:50
professionalDaveAuld24-Jun-13 4:50 
GeneralRe: Both! Pin
DerekT-P24-Jun-13 5:28
professionalDerekT-P24-Jun-13 5:28 
GeneralRe: Both! Pin
ibondy24-Jun-13 6:08
ibondy24-Jun-13 6:08 
GeneralRe: Both! Pin
ZurdoDev24-Jun-13 6:24
professionalZurdoDev24-Jun-13 6:24 
GeneralRe: Both! Pin
Gary Wheeler24-Jun-13 7:01
Gary Wheeler24-Jun-13 7:01 
Agreed. I routinely comment out a block of code, rebuild and retest, and then remove it later after the new block is proven reliable.

It generally depends on the complexity of the code being replaced. The more complex the logic, the more likely I am to keep the commented-out stuff around. That way I can easily compare the new and old code in place. I know you can do this with source control, but for smaller code snippets of a few dozen lines, using source control is cumbersome.
Software Zen: delete this;

GeneralRe: Both! Pin
quinton196924-Jun-13 7:20
quinton196924-Jun-13 7:20 
GeneralRe: Both! Pin
MacSpudster24-Jun-13 12:56
professionalMacSpudster24-Jun-13 12:56 
GeneralRe: Both! Pin
chriselst24-Jun-13 23:57
chriselst24-Jun-13 23:57 
GeneralUse with Source Control Pin
Andy Bantly24-Jun-13 4:41
Andy Bantly24-Jun-13 4:41 
GeneralRe: Use with Source Control Pin
Victor Nijegorodov24-Jun-13 23:16
Victor Nijegorodov24-Jun-13 23:16 
GeneralRelevant answers missing Pin
Wolfgang_Baron24-Jun-13 3:46
professionalWolfgang_Baron24-Jun-13 3:46 
GeneralRe: Relevant answers missing Pin
PSU Steve24-Jun-13 8:42
professionalPSU Steve24-Jun-13 8:42 
GeneralRe: Relevant answers missing Pin
MacSpudster24-Jun-13 12:48
professionalMacSpudster24-Jun-13 12:48 
GeneralRe: Relevant answers missing Pin
Ashley van Gerven24-Jun-13 15:39
Ashley van Gerven24-Jun-13 15:39 
GeneralRe: Relevant answers missing Pin
Chris Maunder25-Jun-13 8:12
cofounderChris Maunder25-Jun-13 8:12 
GeneralRe: Relevant answers missing Pin
Wolfgang_Baron25-Jun-13 13:31
professionalWolfgang_Baron25-Jun-13 13:31 
GeneralRe: Relevant answers missing Pin
Chris Maunder25-Jun-13 16:09
cofounderChris Maunder25-Jun-13 16:09 
GeneralRe: Relevant answers missing Pin
Andreas Gieriet27-Jun-13 9:19
professionalAndreas Gieriet27-Jun-13 9:19 
GeneralWhy to comment it? Pin
Prasad_Kulkarni24-Jun-13 3:41
Prasad_Kulkarni24-Jun-13 3:41 
GeneralMostly Toasty Pin
Nagy Vilmos24-Jun-13 2:30
professionalNagy Vilmos24-Jun-13 2:30 
GeneralRe: Mostly Toasty Pin
Espen Harlinn24-Jun-13 4:24
professionalEspen Harlinn24-Jun-13 4:24 
GeneralIn some instances Pin
S Houghtelin24-Jun-13 2:01
professionalS Houghtelin24-Jun-13 2:01 

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.