Click here to Skip to main content
15,891,529 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.

 
AnswerRe: This code will self-destruct in... Pin
OriginalGriff16-Oct-17 6:19
mveOriginalGriff16-Oct-17 6:19 
AnswerRe: This code will self-destruct in... Pin
lopatir16-Oct-17 6:26
lopatir16-Oct-17 6:26 
GeneralRe: This code will self-destruct in... Pin
Chris Maunder16-Oct-17 7:43
cofounderChris Maunder16-Oct-17 7:43 
GeneralRe: This code will self-destruct in... Pin
Herbie Mountjoy16-Oct-17 23:20
professionalHerbie Mountjoy16-Oct-17 23:20 
AnswerRe: This code will self-destruct in... Pin
Nagy Vilmos16-Oct-17 6:45
professionalNagy Vilmos16-Oct-17 6:45 
AnswerRe: This code will self-destruct in... Pin
GuyThiebaut16-Oct-17 6:47
professionalGuyThiebaut16-Oct-17 6:47 
GeneralRe: This code will self-destruct in... Pin
Chris Maunder16-Oct-17 7:44
cofounderChris Maunder16-Oct-17 7:44 
GeneralRe: This code will self-destruct in... Pin
Kirk 1038982117-Oct-17 6:58
Kirk 1038982117-Oct-17 6:58 
The first thing that comes to mind for me is conditional compilation, tied to the targeted version of the DB you are compiling for (the variable you must set/control, like compiler versions).

Then combined with an IDE feature (Plugin) that goes X revs back to suggest/clean as you go.

I cannot imagine it being done in one step. Using a DB versioning system, we would target a specific X.Y version.

#ifdef DBVER_MM = 7.4
...
#endif

A quick scan of DBVER_MM (Major.Minor) would find removable code. But a plugin could handle it for you to manage the version # of the DB, and suggest/clean the old revs of the code.

The challenge is that you MUST know 2 things:
1) The target DB version: Which changes over time
2) which code will be "targeted" (both for compile time inclusion, and for effective cleaning)

And you should know how long, you want to keep that code around in case it needs to be re-used or reviewed. The good news is that it should also be in revision control.

Just some thoughts.

AnswerRe: This code will self-destruct in... Pin
abmv16-Oct-17 7:15
professionalabmv16-Oct-17 7:15 
AnswerRe: This code will self-destruct in... Pin
kmoorevs16-Oct-17 8:13
kmoorevs16-Oct-17 8:13 
GeneralRe: This code will self-destruct in... Pin
Jeremy Falcon16-Oct-17 8:19
professionalJeremy Falcon16-Oct-17 8:19 
AnswerRe: This code will self-destruct in... Pin
CodeWraith16-Oct-17 8:36
CodeWraith16-Oct-17 8:36 
AnswerRe: This code will self-destruct in... Pin
GKP199216-Oct-17 18:01
professionalGKP199216-Oct-17 18:01 
AnswerRe: This code will self-destruct in... Pin
Phil J Pearson16-Oct-17 22:33
Phil J Pearson16-Oct-17 22:33 
AnswerRe: This code will self-destruct in... Pin
Marc Clifton17-Oct-17 1:55
mvaMarc Clifton17-Oct-17 1:55 
AnswerRe: This code will self-destruct in... Pin
Dan Neely17-Oct-17 2:55
Dan Neely17-Oct-17 2:55 
GeneralRe: This code will self-destruct in... Pin
Chris Maunder17-Oct-17 9:38
cofounderChris Maunder17-Oct-17 9:38 
GeneralRe: This code will self-destruct in... Pin
Dan Neely17-Oct-17 9:53
Dan Neely17-Oct-17 9:53 
AnswerRe: This code will self-destruct in... Pin
loctrice17-Oct-17 4:16
professionalloctrice17-Oct-17 4:16 
GeneralRe: This code will self-destruct in... Pin
Chris Maunder17-Oct-17 4:19
cofounderChris Maunder17-Oct-17 4:19 
AnswerRe: This code will self-destruct in... Pin
Bruce Patin17-Oct-17 4:29
Bruce Patin17-Oct-17 4:29 
AnswerRe: This code will self-destruct in... Pin
Bassam Abdul-Baki17-Oct-17 4:45
professionalBassam Abdul-Baki17-Oct-17 4:45 
GeneralRe: This code will self-destruct in... Pin
Chris Maunder17-Oct-17 4:46
cofounderChris Maunder17-Oct-17 4:46 
GeneralRe: This code will self-destruct in... Pin
Bassam Abdul-Baki17-Oct-17 5:40
professionalBassam Abdul-Baki17-Oct-17 5:40 
AnswerRe: This code will self-destruct in... Pin
FredWah17-Oct-17 7:51
FredWah17-Oct-17 7:51 

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.