Elixir Blog Posts

Very nice description of how you can extends phx.gen.auth to do magic links (without any extra dependencies). Thanks for sharing!

The only minor feedback I’d have is to avoid calling back to your web module from your context module here. This creates a cyclical dependency. The original functions that send emails (like this one), in the Accounts context module avoid this by accepting an extra function that generates a full url, given an encoded token. Extending this pattern would be a better choice IMO.

1 Like

I released a new project today. Very simple but fun - a webring for the BEAM community.

I’m happy to add anyone here to it if you’re interested!

1 Like

Hey all, the Elixir community has been so welcoming to me and I wanted to give some tips to any beginners. I first dabbled with Elixir over a year ago but I hit the ground running with Elixir ~6 months ago and since then I have published 2 packages and will be speaking at ElixirConf US. Here are 5 tips I have for Elixir beginners to optimize your experience learning the language.

2 Likes

@alexpls congrats on making the front page of HN!

4 Likes

Hey Linus,

Thanks for pointing this out! You’re absolutely correct. I’ve updated the blog post to reflect this info and gave you a nod in the post as well :slight_smile:

Thanks for reading!

1 Like

What does connected even do, anyway?

I always hated dropping right into an if statement in the mount callback of my LiveViews.

What if we could have separate function heads for (dis)connected mounts?

Turns out, we can. And it’s pretty easy, too!

4 Likes

Hey folks! Got a follow up to my previous SVG sparklines post, this time going into detail about getting the timeseries data used to build the chart (again with an Elixir example):

5 Likes

I’m back :slight_smile:

My head hit the keyboard when I learned about how much time I had been wasting while debugging dependencies.

Read more: Library authors hate this one weird trick! - John Elm Labs

1 Like

Written with help from @paraxialio and @wojtekmach

3 Likes

A helpful breakdown of Elixir HTTP clients, written by Andrea Leopardi:

6 Likes

I’ve been missing having a blog lately, so here’s a first post from something new: Easier Recursion :: The Programmer's Stone

11 Likes

Awesome blog post! I really enjoy this type of content. Thank you. :slight_smile:

1 Like

A beginner-level post that shows how to strip the trailing slash from a URL when using Phoenix.

1 Like

I too have largely avoided the Stream module, mistakenly thinking it was complicated or inefficient when Enum is “good enough”. Your post was a great illustration of how Stream can actually simplify and clarify code when working with series of data. Great to see you blogging again! :tada:

1 Like

I wrote a post about why daisyUI is a good fit for a Phoenix project, and how to set it up.

The post contains some of the material distilled from this elixirforum.com thread and combines it with some of my own learned experiences with daisyUI. My intention was to put everything in one easy-to-read post so people don’t have to digging around for information on the subject.

EDIT: Sorry for tagging you @stevegrossi, that was an accident. :sweat_smile:

2 Likes

Hi, I wrote an article on how to use Jinterface and set up communication between Elixir and Java nodes - Communicating between Elixir and Java using Jinterface

1 Like

Thank you!, more please!

1 Like

Interesting and fun blog post ElixirForCynicalCurmudgeons which is currently #4 on the front page of Hacker News.

The final line of the post:

It’s been a long time since a programming language made me this happy.

9 Likes

I love that you reply this one to me… what you trying to say?.. :laughing:
Sir I’m jaded not Cynical.

1 Like

I’m never quite sure where to reply in a “long running” threads. Please be assured my comments were not intended as a negative reflection on the value of polygons!

1 Like