Tag: elixir
-
Pipes in Elixir
Pipes are a delightful feature in Elixir that you can use to pass the evaluation of an expression into a function. For example, the code below will output “Hello, world!” to the terminal: You can use this to chain together different operations: And Elixir specifically substitutes the result of the expression into the first argument…
-
Why Elixir? ⚗️🧪
Elixir, other than being an alchemical cure-all, does double duty as a programming language that’s good for fast, resilient, parallel computing. It has all the syntactical charm of Ruby, with the power of an alien (actually Swedish, but close enough) technology. But why am I learning Elixir now, after so many years of Ruby? To…
-
Trying Elixir as a Rubyist
I’ve been working through Dave Thomas’s fantastic book Programming Elixir 1.6 in hopes of using Phoenix LiveView, and it has been really interesting, coming from Ruby. A lot of syntax is familiar enough to be alluring, but unfamiliar enough to trip me up. For instance, even something as simple as an if block was hard…