Click here to Skip to main content
15,887,027 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
Mike Hankey17-Aug-23 5:12
mveMike Hankey17-Aug-23 5:12 
GeneralRe: Nondestructive mutation: tell me about a time Pin
raddevus17-Aug-23 5:53
mvaraddevus17-Aug-23 5:53 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Mike Hankey17-Aug-23 5:56
mveMike Hankey17-Aug-23 5:56 
GeneralRe: Nondestructive mutation: tell me about a time Pin
PIEBALDconsult17-Aug-23 6:09
mvePIEBALDconsult17-Aug-23 6:09 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Mike Hankey17-Aug-23 6:16
mveMike Hankey17-Aug-23 6:16 
GeneralRe: Nondestructive mutation: tell me about a time Pin
PIEBALDconsult17-Aug-23 6:44
mvePIEBALDconsult17-Aug-23 6:44 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Mike Hankey17-Aug-23 6:53
mveMike Hankey17-Aug-23 6:53 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Jeremy Falcon17-Aug-23 4:26
professionalJeremy Falcon17-Aug-23 4:26 
If I understand this correctly, we use nondestructive mutation all the time in JavaScript patterns. The most common scenario is with state management. While it may seem optimal to diff and mutate a state object, it's actually much slower in practice to run logic to figure out what's what. So, in JS land, a lot of times we'll just mutate copies of an object. If we need to diff, we can, but for every update we don't need to. It's much, much quicker.

Oh, and if anyone wants to insult JS, you better be an expert in it first.
Jeremy Falcon

GeneralRe: Nondestructive mutation: tell me about a time Pin
raddevus17-Aug-23 5:59
mvaraddevus17-Aug-23 5:59 
GeneralRe: Nondestructive mutation: tell me about a time Pin
Jeremy Falcon17-Aug-23 6:51
professionalJeremy Falcon17-Aug-23 6:51 
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 
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 

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.