News for hackers. Stuff that matters.
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.
Re:Onboarding to Elixir by dnautics on Tuesday June 22, 2021 @03:22PM (#27595970)
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.
Re:Onboarding to Elixir by dnautics on Tuesday June 22, 2021 @08:09PM (#27599067)
yes, that's why I put two exclamation points and an /s on the end.