DEV Community

Discussion on: Don't stop Mutating

Collapse
 
thorstenhirsch profile image
Thorsten Hirsch

I agree with you in all your examples. But in general I think "don't mutate" is a good advice (it doesn't say "never mutate").

Collapse
 
smeijer profile image
Stephan Meijer

Ooh, I definitely agree. Most of the time, immutable code is fine. Maybe even preferred. I simply try to make a sound against the unnuanced pushing that starts to take overhand on the web. I hope to make especially junior developers realize that they have to make decisions. And that banning half the language because it's "the old way" isn't the solution.