Re:Onboarding to Elixir
by eweise on Tuesday June 22, 2021 @02:41PM
(#27595446)
The Go codebase I'm working on is terrible about mutation. structs get passed into functions which then may mutate them or pass them to yet another function which mutates them. Its impossible to understand what is going just by looking at the code.
[ Parent
| on HN ]
Well, immutable code is imperformant code!! /s
Re:Onboarding to Elixir
by weatherlight on Tuesday June 22, 2021 @04:26PM
(#27596746)
debatable, unless you are doing really low level stuff, it's almost negligible. also it harder to get code using mutable data structures to scale horizontally. if you have one CPU on one machine, and your code is cpu bound, your statement is probably true.