Don’t use Elixir modules in migrations
Most of our projects use databases. We often do not realize that incorrectly used functionality may block our applications. Simple changes can save us from unpleasant consequences.
https://bartoszgorka.com/dont-use-elixir-modules-in-migrations
ThinkingElixir 039: Mix Install and ExDocs for Erlang with Wojtek Mach
In episode 39 of Thinking Elixir, Wojtek Mach returns and talks about the new Mix.install/2 feature coming in Elixir 1.12. We learn about some other features coming that will help script authors. We talk about the OTP 24 release and when we can expect Elixir 1.12 to be released, ExDocs support for Erlang libraries, and much more!
Erlang OAuth2 client library
An OAuth2 client for Erlang, which supports almost all OAuth2 extensions - https://github.com/exograd/erl-oauth2c
hackney 1.17.1 with new fixes has been released : https://github.com/benoitc/hackney/blob/master/NEWS.md#1171---2021-03-15 . Enjoy!
hackney 1.17.1 with new fixes has been released : https://github.com/benoitc/hackney/blob/master/NEWS.md#1171—2021-03-15 .
Also available on hex: https://hex.pm/packages/hackney Enjoy :)
Saša Jurić & Jonn Mostovoy – Elixir in 2021
What’s the future of Elixir? Listen to the discussion between Saša Jurić, the author of Elixir in Action, and Serokell CAO Jonn Mostovoy to learn their thoughts on Elixir and frameworks like Nx and Nerves.
Elixir Wizards S5E15 John Mertens on Adopting Elixir at Change.org
Latest episode of Elixir Wizards is out today! Check it out here: https://smartlogic.io/podcast/elixir-wizards/s5e15-mertens/
Tarearbol Update
Tarearbol
library that eases the dealing with tasks got a massive update.
-
use Tarearbol.Pool
to create worker pools with no boilerplate -
call/3
,cast/2
, andterminate/2
callbacks to handle messages directly sent to the worker process -
__init_handler__/1
(orinit: mfa()
parameter in a call touse
) to customize initialization process.
3rd release of the "Create a cryptocurrency trading bot in Elixir" book is out
Hi everyone,
I’ve managed to get 3rd release of my book out!
I guesstimate it to be about 75% finished and with 15 chapters, it’s 200+ pages long.
The book is reaching the stage where additional contents will be “add-ons” to what we already have there like for example indicators. I would love to get some feedback - are you happy about the contents? what else would you be keen to see inside this book?
Also, I decided that this book will be “sold” in the “pay what you want” form forever <3 (although some $$$ would be totally cool with me :D)
https://leanpub.com/create-a-cryptocurrency-trading-bot-in-elixir
Feel free to reach out if you found any issue / drop a comment / say hi ;)
Happy Tuesday!
Kamil
12factor Elixir/Phoenix releases
Finally, we can easily do Elixir releases with runtime configuration.
ThinkingElixir 038: Maintainable Elixir with Saša Jurić
In episode 38 of Thinking Elixir, Saša Jurić shares how the team at Very Big Things is building maintainable Elixir code. This ranges from the development processes to code design and organization. He takes some “radical” positions and challenges conventions on a mission to find what actually works well. We talk about his library Boundary and how it helps enforce API designs. He talks about the “Junk Drawer Pattern” and how code analysis helps identify lines of separation for refactoring. A thought provoking and fun discussion!
Building Git in Elixir — Part 1 (Initialize Repo & Store blobs)
I recently got hold of this book Building Git, written by James Coglan. It’s a pretty thick book covering, as the title says, building Git version control system using Ruby programming language. I thought it would be a fun exercise to implement Git using Elixir as I read the book. This article is the first introductory one in a series of articles focusing on my journey implementing Git in Elixir programming language.
Asynchronous browser tests with Phoenix (making our tests faster 🚀)
A deep-dive into how Wallaby uses the “sandbox” in Phoenix/Ecto, and how we can use it to keep browser tests asychronous even when using resources that must be explicitly shared between processes (such as Mox definitions).
Resources to learn Elixir - A study path
Here you can find resources for getting started with Elixir. It’s what I am following and it could be helpful for programmers that want to learn Elixir.
Elixir Wizards S5E14 Sophie DeBenedetto on Programming Phoenix LiveView
Latest episode of Elixir Wizards is out today! Check it out here: https://smartlogic.io/podcast/elixir-wizards/s5e14-debenedetto/
How we use Python within Elixir
A blog post explaining how we added Python to an existing Elixir application:
https://medium.com/stuart-engineering/how-we-use-python-within-elixir-486eb4d266f9