Live data from Hacker News

Elixir v1.10

elixir-lang.org

1–10 of 141 posts

Re: Elixir v1.10

#3
Having learnt Ruby and a bit of Erlang, I'm interested in Elixir so I fire this tangential question:

How would you recommend to learn Elixir? And a follow-up: some ideas for personal Elixir-based projects?

Re: Elixir v1.10

#4

Having learnt Ruby and a bit of Erlang, I'm interested in Elixir so I fire this tangential question: How would you recommend to learn Elixir? And a follow-up: some ideas for personal Elixir-based projects?

IMHO Elixir School is a great way to start: https://elixirschool.com/

After that, I would recommend taking a look at Elixir in Action from Saša Jurić

Re: Elixir v1.10

#5

Having learnt Ruby and a bit of Erlang, I'm interested in Elixir so I fire this tangential question: How would you recommend to learn Elixir? And a follow-up: some ideas for personal Elixir-based projects?

I just started my Elixir journey late last year, and I've been using a combination of Elixir School[0], the Ecto guides[1] and a video course from Pragmatic Studio[2] that I picked up on sale back in December.

The video course was a mixed bag but mostly useful. I am also new to functional programming so it was helpful for getting my head around a new way of planning my code but there were definitely chapters that were painfully basic and slow. So if you're already more advanced, it may not be as useful to you.

That said, they did a good job of introducing certain key Elixir/Erlang concepts by getting you to build functionality "by hand" and then refactoring it into the standard library functionality, so you can understand how it works under the hood, while also learning how to use the built-in library modules in real code.

Elixir has some pretty important concepts around concurrency, state management, and process supervision that are worth exploring in detail before you dive in too deep.

In terms of personal projects, I always try to re-implement an existing project when I tackle a new language. Right now I'm working on a simple scraper/parser that uses a shared worker pool for concurrent post-processing of links scraped by the main thread.

0: https://elixirschool.com/

1: https://hexdocs.pm/ecto/getting-started.html

2: https://pragmaticstudio.com/courses/elixir

Re: Elixir v1.10

#6

Having learnt Ruby and a bit of Erlang, I'm interested in Elixir so I fire this tangential question: How would you recommend to learn Elixir? And a follow-up: some ideas for personal Elixir-based projects?

The official Elixir guide runs you through the basics all the way to the more complicated concepts: https://elixir-lang.org/getting-started/introduction.html

For a fun and complicated Elixir project, you could try building a process pipeline that uses all your CPU cores to crunch some data. Look into Elixir Flow [0], for example, which has a fun guide on counting words in a file.

Elixir & Phoenix work well for web projects. The Phoenix framework is very well built on a solid core; it differs from other frameworks in that it feels more like a library, rather than a monstrosity that forces you to bend your application to its requirements. There's a lot of nice utilities that are easily pluggable and writing "plugs" yourself is rather simple as well. Phoenix has served me well when building microservices, too.

Elixir's biggest deficiency is that it does not have a proper type system. There is a very basic one, but it doesn't really help a whole lot. When working with Elixir, a type system is something that I miss the most. The way that Erlang & Beam VM are built makes it slightly easier to deal with errors at run-time, but catching stupidities at compile-time would still be immensely valuable.

[0] https://hexdocs.pm/flow/Flow.html

Re: Elixir v1.10

#7

Having learnt Ruby and a bit of Erlang, I'm interested in Elixir so I fire this tangential question: How would you recommend to learn Elixir? And a follow-up: some ideas for personal Elixir-based projects?

Once you go through the official Elixir crash course, head over to Exercism. Best place to learn by doing!

Re: Elixir v1.10

#8

Having learnt Ruby and a bit of Erlang, I'm interested in Elixir so I fire this tangential question: How would you recommend to learn Elixir? And a follow-up: some ideas for personal Elixir-based projects?

The "introduction to mix" was particularly fun as a language introduction:

https://elixir-lang.org/getting-started/mix-otp/introduction...

It's a short project in which you create a homemade key/value store application. What's illuminating coming from elsewhere is how much it "just works" across the network and with multiple nodes including grace under failure.

Re: Elixir v1.10

#9

Having learnt Ruby and a bit of Erlang, I'm interested in Elixir so I fire this tangential question: How would you recommend to learn Elixir? And a follow-up: some ideas for personal Elixir-based projects?

Alchemist Camp has good video tutorials https://alchemist.camp

Also this blog post helped my understanding http://www.petecorey.com/blog/2019/05/20/minimum-viable-phoe...

Phoenix LiveView [0] is really exciting to try out in Elixir. I'd recommend building an auto updating dashboard.

I had a micro controller that had various sensors on it that I connected to over a serial port using circuits_uart[1]. I then read the sensor values and displayed them on a LiveView dashboard. Totally pointless but super fun :)

[0]: https://dockyard.com/blog/2018/12/12/phoenix-liveview-intera... [1]: https://github.com/elixir-circuits/circuits_uart

Sidenote. If anyone has any Elixir freelancing work I can do send me an email. Email in my HN bio.

Post reply on HN