News for hackers. Stuff that matters.
Re:Elixir for Humans Who Know Python by JPKab on Saturday February 25, 2023 @11:20AM (#34937776)
"Python has some functional capabilities, but in my experiences with Python devs, those are little used and even shunned. Imperative, mutating loops are the Python way; and to suggest otherwise is to hear "But why would I need that? This (long functions with mutations everywhere and loops) is fine.""

Thank God I'm not stuck with low talent clowns like that.

Writing highly functional python isn't hard anymore, especially making use of mypy strong types, data classes, generator expressions/etc.

Using dict unpacking combined with things like list comps is a really simple way to get trad Python devs getting more functional. My team is a bunch of experienced Python devs who happen to live Haskell/Clojure/etc so I guess that makes things easier.

Re:Elixir for Humans Who Know Python by foldr on Saturday February 25, 2023 @05:49PM (#34941259)
> Thank God I'm not stuck with low talent clowns like that

Woah! Python’s a multiparadigm language. Using loops and mutation is a perfectly fine way to write Python code. For sure there are some kinds of code that lend themselves to a functional style, but equally, there are other cases where mutation is the more straightforward approach.