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.
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.
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):
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!
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.
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!