![Elixir Mix artwork](https://is1-ssl.mzstatic.com/image/thumb/Podcasts123/v4/08/b3/62/08b362b6-e888-71de-a835-8480355aa09a/mza_767768620257170873.jpg/100x100bb.jpg)
Episode 64: EMx 064: Refactoring Elixir with Hubert Lepicki
Elixir Mix
English - August 13, 2019 10:00 - 1 hour - 60 MB - ★★★★★ - 12 ratingsHow To Education Business Careers elixir erlang programming code software development developer functional Homepage Download Apple Podcasts Google Podcasts Overcast Castro Pocket Casts RSS feed
Sponsors
Sentry– use the code “devchat” for two months free on Sentry’s small plan
Panel
Mark Ericksen
Josh Adams
Joined by Special Guests: Hubert Łępicki
Summary
Hubert Łępicki joins the panel to discuss his blog post, “Refactoring Phoenix controllers”; he starts by sharing what made him decide to write this article. In the blog post, he outlines strategies and patterns to better organize your code. The first strategy discussed, which was not mentioned in the blog post is: Breaking down one controller into multiple controllers. Intrigued, the panel asks Hubert to explain exactly what he means by this. The second pattern is: extracting logic from a controller and using it in a plug instead. The panel discusses what the right code to put in a plug.
The third pattern Hubert explains is: using business logic and workflow modules. The panel asks Hubert about his dislike for phoenix context. Hubert and the panel give better alternatives to phoenix controller and explains how they use modules. Having a Ruby background, Hubert explains the difference of using context and modules in Elixir compared to Ruby. Hubert shares how he uses the fourth pattern: Ecto using embedded schema. The episode ends with a little about Hubert's company and what they do.
Links
https://www.amberbit.com/blog/2019/6/29/refactoring-phoenix-controllers/
https://pcpartpicker.com/list/t7LBNQ
https://www.techradar.com/sg/reviews/amd-ryzen-7-3700x
https://www.pcgamer.com/the-best-graphics-cards/
https://www.amberbit.com/blog/2019/6/29/refactoring-phoenix-controllers/
https://github.com/elixir-plug/plug
https://twitter.com/hubertlepicki/status/1156179338779385856
https://brainlid.org/elixir/2017/09/24/elixir-processes-and-state-abuse.html
https://github.com/absinthe-graphql/absinthe
https://twitter.com/hubertlepicki
https://www.facebook.com/Elixir-Mix
https://twitter.com/elixir_mix
Picks
Mark Ericksen:
The Pragmatic Programmer, 20th Anniversary Edition
https://twitter.com/D2BOWIE/status/1151134380439420933
Josh Adams:
The Emperor's Blades: Chronicle of the Unhewn Throne, Book I
Hubert Łępicki:
Special Guest: Hubert Lepicki.
Sponsors
Sentry– use the code “devchat” for two months free on Sentry’s small plan
Panel
Mark Ericksen
Josh Adams
Joined by Special Guests: Hubert Łępicki
Summary
Hubert Łępicki joins the panel to discuss his blog post, “Refactoring Phoenix controllers”; he starts by sharing what made him decide to write this article. In the blog post, he outlines strategies and patterns to better organize your code. The first strategy discussed, which was not mentioned in the blog post is: Breaking down one controller into multiple controllers. Intrigued, the panel asks Hubert to explain exactly what he means by this. The second pattern is: extracting logic from a controller and using it in a plug instead. The panel discusses what the right code to put in a plug.
The third pattern Hubert explains is: using business logic and workflow modules. The panel asks Hubert about his dislike for phoenix context. Hubert and the panel give better alternatives to phoenix controller and explains how they use modules. Having a Ruby background, Hubert explains the difference of using context and modules in Elixir compared to Ruby. Hubert shares how he uses the fourth pattern: Ecto using embedded schema. The episode ends with a little about Hubert's company and what they do.
Links
https://www.amberbit.com/blog/2019/6/29/refactoring-phoenix-controllers/
https://pcpartpicker.com/list/t7LBNQ
https://www.techradar.com/sg/reviews/amd-ryzen-7-3700x
https://www.pcgamer.com/the-best-graphics-cards/
https://www.amberbit.com/blog/2019/6/29/refactoring-phoenix-controllers/
https://github.com/elixir-plug/plug
https://twitter.com/hubertlepicki/status/1156179338779385856
https://brainlid.org/elixir/2017/09/24/elixir-processes-and-state-abuse.html
https://github.com/absinthe-graphql/absinthe
https://twitter.com/hubertlepicki
https://www.facebook.com/Elixir-Mix
https://twitter.com/elixir_mix
Picks
Mark Ericksen:
The Pragmatic Programmer, 20th Anniversary Edition
https://twitter.com/D2BOWIE/status/1151134380439420933
Josh Adams:
The Emperor's Blades: Chronicle of the Unhewn Throne, Book I
Hubert Łępicki:
Special Guest: Hubert Lepicki.