Click here to Skip to main content
15,893,508 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: Duplication vs. Complexity Pin
BillWoodruff12-Oct-21 18:14
professionalBillWoodruff12-Oct-21 18:14 
AnswerRe: Duplication vs. Complexity Pin
Mike Winiberg12-Oct-21 21:14
professionalMike Winiberg12-Oct-21 21:14 
GeneralRe: Duplication vs. Complexity Pin
Jacquers12-Oct-21 22:12
Jacquers12-Oct-21 22:12 
AnswerRe: Duplication vs. Complexity Pin
Niels Holst12-Oct-21 22:11
professionalNiels Holst12-Oct-21 22:11 
AnswerRe: Duplication vs. Complexity Pin
Kirk 1038982113-Oct-21 4:13
Kirk 1038982113-Oct-21 4:13 
AnswerRe: Duplication vs. Complexity Pin
Dave B 6813-Oct-21 6:17
Dave B 6813-Oct-21 6:17 
AnswerRe: Duplication vs. Complexity Pin
englebart13-Oct-21 9:40
professionalenglebart13-Oct-21 9:40 
AnswerRe: Duplication vs. Complexity Pin
Member 1409260513-Oct-21 23:22
Member 1409260513-Oct-21 23:22 
General question - general answer:

I mainly see different pros/cons than you:

Duplication: It's really bad when the different copies of the same code start to drift apart. It has to be made sure that whenever someone changes one copy of the code, the changes are copied to all other copies of the code. So everyone in the team has to know that there is copy/paste code, which might be a problem in large teams or teams with a lot of fluctuation. If you're a one-man team, then you don't have this problem. Unless your memory is bad and you can't remember what you did last year! Wink | ;-)

Complexity, or as I would call it, "clean code": It takes a lot more time to avoid copy/paste code, and the return on this investment is not visible on the surface. There are cases where it's more efficient to not make this investment. So the decision depends on whether you're working on a one-shot project or on a product you're going to have to maintain for decades. For long-term software, the clean-code approach usually pays off in the long term. The *very* long term! Which is something that project managers usually don't like to hear and thus software developers have to take care of themselves.
AnswerRe: Duplication vs. Complexity Pin
Martin ISDN14-Oct-21 7:14
Martin ISDN14-Oct-21 7:14 
AnswerRe: Duplication vs. Complexity Pin
Felix Collins14-Oct-21 10:04
Felix Collins14-Oct-21 10:04 
GeneralCCC 2021-10-12 Pin
Peter_in_278011-Oct-21 22:00
professionalPeter_in_278011-Oct-21 22:00 
GeneralRe: CCC 2021-10-12 Pin
NeverJustHere11-Oct-21 22:30
NeverJustHere11-Oct-21 22:30 
GeneralRe: CCC 2021-10-12 - WINNER! Pin
Peter_in_278011-Oct-21 22:39
professionalPeter_in_278011-Oct-21 22:39 
GeneralRe: CCC 2021-10-12 Pin
pkfox11-Oct-21 23:38
professionalpkfox11-Oct-21 23:38 
GeneralRe: CCC 2021-10-12 Pin
Peter_in_278011-Oct-21 23:45
professionalPeter_in_278011-Oct-21 23:45 
GeneralRe: CCC 2021-10-12 Pin
pkfox12-Oct-21 0:22
professionalpkfox12-Oct-21 0:22 
GeneralIf you are toward the poles... Pin
David O'Neil11-Oct-21 13:11
professionalDavid O'Neil11-Oct-21 13:11 
GeneralLightning points up Pin
David O'Neil11-Oct-21 13:09
professionalDavid O'Neil11-Oct-21 13:09 
GeneralRe: Lightning points up Pin
Nelek11-Oct-21 20:44
protectorNelek11-Oct-21 20:44 
GeneralRe: Lightning points up Pin
Chris C-B11-Oct-21 21:19
Chris C-B11-Oct-21 21:19 
GeneralRe: Lightning points up Pin
RickZeeland11-Oct-21 22:16
mveRickZeeland11-Oct-21 22:16 
GeneralIt's a great day ... until it might not have been. Pin
OriginalGriff11-Oct-21 9:31
mveOriginalGriff11-Oct-21 9:31 
GeneralRe: It's a great day ... until it might not have been. Pin
Member 1532961311-Oct-21 9:53
Member 1532961311-Oct-21 9:53 
GeneralRe: It's a great day ... until it might not have been. Pin
RickZeeland11-Oct-21 9:57
mveRickZeeland11-Oct-21 9:57 
GeneralRe: It's a great day ... until it might not have been. Pin
Mike Hankey11-Oct-21 10:11
mveMike Hankey11-Oct-21 10:11 

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.