DEV Community

Discussion on: Elixir is functional Ruby?

Collapse
 
rcb profile image
rcb

Elixir, by its own admission, has some nice Ruby-flavored syntax working in its favor. I'd argue that Phoenix isn't as similar to Rails as I thought it would be based on what people told me. They're both MVC but Phoenix feels different enough to me to stray a little ways away from the Rails comparison (as compared to, say, Sails in JavaScript). They share enough that makes it a less imposing leap to make, at least.

Overall, I feel like writing Elixir code has a much different feel than writing Ruby code. Most of this probably has to do with learning my first functional language after having learned object-oriented languages for five years. Pattern matching, recursion as a go-to before looping, working through linked lists — I never dealt with these things much at all before learning Elixir.

Elixir has the feel of its own personality, its own voice separate from Ruby. Granted, I did start with Elixir 1.8, so perhaps it was more comparable to Ruby in earlier versions. I am beginning to cross over from enjoying Elixir over Ruby at this point, however. Its interpreter is in a league of its own, and its built-in build tools are incredibly refreshing. Elixir project structures make more natural sense to me than any language I've learned so far.

Also, I started learning Elixir after returning to college for a CS degree, so maybe the functional programming style is striking a bigger chord for me than it would have a couple of years ago when I was just doing self-taught hobby projects.