Hacker News new | ask | show | jobs
by foggyboi 2556 days ago
I learned by converting a simple Rails API that I had running to do one or two things into a Phoenix API. In my case, it was very eye opening both because it was basic ETL and because it was something that benefited from high concurrency.

I especially recommend this approach because it gives you more or less the most complete cross-section of some basic data structures, some web stuff, and some database stuff via their db adapter of choice, Ecto, which is excellent.

Each part can be a pretty steep (but fairly quick) adjustment depending on your background.

1 comments

This is awesome, Cross-section is what I am also looking for.

Appreciate the input, thank you!

Don't forget to learn how to write a GenServer from scratch. I lot of people I've met who hop straight into Phoenix forget to learn the basics of GenServers (and processes in general).

Here's a stupid example I whipped up:

https://gist.github.com/amorphid/3dec7028b05bd10f6ff3180d199...

^^^ you wouldn't ever code it that way, but you should (in my opinion) know what each line of code is trying to do.

This is great, I have been teaching myself everything and there are a lot of day 1 things I learned way too late, this is extremely valuable, thank you!
My pleasure, I'd you want another Elixir reference examples, feel free to email me. Email in profile.