Live data from Hacker News

Elixir 1.11

elixir-lang.org

101–104 of 104 posts

Re: Elixir 1.11

#101

Earlier quoted context omitted.

I'm on the fence about re-binding variables. I don't really mind it and have gotten used to the pin operator when I need it. I actually use variable re-binding quite a bit but always only in situations where I want a prime. def foo(bar) do bar = decorate(bar) {:ok, bar} end I like that better than calling it something like `new_bar`. I kind of wish there was prime syntax along the lines of `bar' = decorate(bar)` but…

my preference is to only use rebinding if I need to rename something more than once (can happen, in with blocks), and when I do it I postfix-sigil with ! as a code annotation to remind myself to watch out when refactoring the code. def foo(bar!) do bar! = decorate(bar!) bar! = some_more(bar!) {:ok, bar!} end

If I get to choose the style, I like doing this...

    bar 
    |> decorate() 
    |> some_more() 
    |> case do 
      result -> 
        {:ok, result} 
    end

Re: Elixir 1.11

#102

Earlier quoted context omitted.

> near me You are experiencing the same global pandemic the rest of us are, right? Remote work and all that? (It’s honestly not for everyone. I prefer some physical facetime myself or I... “get disconnected”) > not a strongly-typed language While this guarantees elimination of a class of bug, pattern matching plus guards cover most of the potential bug surfaces there IMHO. I know the language creators have been consi…

Pandemic or no pandemic, most jobs are at least local to the country. If he is from Russia it's way harder for him to get a job in a U.S / EU company. Also - if it's hard for him to get an Elixir job now (and let's assume he knows if it's hard or not and heard of the concept of remote), while Elixir is past it's peak, is it a good bet to keep going the Elixir route?

> Elixir is past it's peak

It's funny because not only is popularity not a good indicator of the quality/utility of a tool, if it is overpopular it can actually hurt things

Re: Elixir 1.11

#103
I'm stuck between learning Clojure and Elixir (for a backend that will power a web app). The one thing pulling me towards Clojure is ClojureScript, and the fact that I'd be able to write a frontend and backend with the same syntax.

Re: Elixir 1.11

#104

Earlier quoted context omitted.

my preference is to only use rebinding if I need to rename something more than once (can happen, in with blocks), and when I do it I postfix-sigil with ! as a code annotation to remind myself to watch out when refactoring the code. def foo(bar!) do bar! = decorate(bar!) bar! = some_more(bar!) {:ok, bar!} end

If I get to choose the style, I like doing this... bar |> decorate() |> some_more() |> case do result -> {:ok, result} end

I like that. I never occurred to me to pipe into `case`.
Post reply on HN