Click here to Skip to main content
15,887,405 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: Nondestructive mutation: tell me about a time Pin
Jeremy Falcon17-Aug-23 4:37
professionalJeremy Falcon17-Aug-23 4:37 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Marc Clifton17-Aug-23 6:03
mvaMarc Clifton17-Aug-23 6:03 
GeneralRe: Nondestructive mutation: tell me about a time Pin
jschell17-Aug-23 6:19
jschell17-Aug-23 6:19 
GeneralRe: Nondestructive mutation: tell me about a time Pin
raddevus17-Aug-23 6:25
mvaraddevus17-Aug-23 6:25 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Graeme_Grant17-Aug-23 17:23
mvaGraeme_Grant17-Aug-23 17:23 
GeneralRe: Nondestructive mutation: tell me about a time Pin
raddevus18-Aug-23 2:38
mvaraddevus18-Aug-23 2:38 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Graeme_Grant18-Aug-23 2:53
mvaGraeme_Grant18-Aug-23 2:53 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Davyd McColl17-Aug-23 22:29
Davyd McColl17-Aug-23 22:29 
often, because a lot of common bugs can be traced back to unexpected mutations

so if you send me an object and I don't know where it comes from, and I need a modified version of that to do something else, I'll make a copy first - I might use .DeepClone() from NuGet Gallery | PeanutButter.Utils 3.0.167 followed by some (again, from that lib) .With(...) statements, eg
var foo = yourObject.DeepClone()
              .With(o => o.Name = o.Name.ToUpper());
------------------------------------------------
If you say that getting the money
is the most important thing
You will spend your life
completely wasting your time
You will be doing things
you don't like doing
In order to go on living
That is, to go on doing things
you don't like doing

Which is stupid.

GeneralRe: Nondestructive mutation: tell me about a time Pin
raddevus18-Aug-23 2:50
mvaraddevus18-Aug-23 2:50 
GeneralRe: Nondestructive mutation: tell me about a time Pin
obermd18-Aug-23 3:40
obermd18-Aug-23 3:40 
GeneralRe: Nondestructive mutation: tell me about a time Pin
jochance18-Aug-23 5:53
jochance18-Aug-23 5:53 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Member 1194113118-Aug-23 13:05
Member 1194113118-Aug-23 13:05 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Andrei Bozantan19-Aug-23 1:57
Andrei Bozantan19-Aug-23 1:57 
GeneralWSO CCC OTD 2023-08-17 Pin
OriginalGriff16-Aug-23 21:30
mveOriginalGriff16-Aug-23 21:30 
GeneralRe: WSO CCC OTD 2023-08-17 Pin
pkfox16-Aug-23 21:55
professionalpkfox16-Aug-23 21:55 
GeneralRe: WSO CCC OTD 2023-08-17 - we have a winner! Pin
OriginalGriff16-Aug-23 22:10
mveOriginalGriff16-Aug-23 22:10 
GeneralRe: WSO CCC OTD 2023-08-17 - we have a winner! Pin
pkfox16-Aug-23 22:13
professionalpkfox16-Aug-23 22:13 
GeneralRe: WSO CCC OTD 2023-08-17 - we have a winner! Pin
OriginalGriff16-Aug-23 22:22
mveOriginalGriff16-Aug-23 22:22 
GeneralRe: WSO CCC OTD 2023-08-17 - we have a winner! Pin
Rich Leyshon16-Aug-23 22:14
Rich Leyshon16-Aug-23 22:14 
GeneralRe: WSO CCC OTD 2023-08-17 - we have a winner! Pin
OriginalGriff16-Aug-23 22:19
mveOriginalGriff16-Aug-23 22:19 
GeneralRe: WSO CCC OTD 2023-08-17 - we have a winner! Pin
pkfox16-Aug-23 22:34
professionalpkfox16-Aug-23 22:34 
GeneralRe: WSO CCC OTD 2023-08-17 - we have a winner! Pin
Rich Leyshon16-Aug-23 22:39
Rich Leyshon16-Aug-23 22:39 
GeneralAmazing music video graphics Pin
David O'Neil16-Aug-23 20:57
professionalDavid O'Neil16-Aug-23 20:57 
GeneralRe: Amazing music video graphics Pin
Slacker00717-Aug-23 0:03
professionalSlacker00717-Aug-23 0:03 
GeneralRe: Amazing music video graphics Pin
jmaida17-Aug-23 11:30
jmaida17-Aug-23 11:30 

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.