Covering topics like Elixir 1.16.1 release, ExUnit testing tips, Bandit performance boosts, Phoenix route parameters, Inch's 10-year anniversary. Also, discussing dark side of AI with a deepfake phishing scam and more!
Elixir 1.16.1 release focuses on bug fixes for improved testing scenarios and enhanced performance.
Utilizing temporary directories in ExUnit for parallel testing ensures unique paths, increasing testing efficiency.
Deep dives
Elixir 1.16.1 Release
Elixir 1.16.1, a minor bug fix release, was recently announced. The changes include fixes in various sections of Elixir such as the core language, i.e.x, and mix. Though the release does not introduce any groundbreaking features or major upgrades, it is recommended to stay updated to benefit from improved testing scenarios and bug fixes, such as the fix for 'fixstring.capitalize' for a single code point.
Using Temporary Directories in XUnit
Hermann Velesco shares an important tip for utilizing temporary directories in XUnit. By incorporating the module name, test name, and random noise into the temporary path, developers can ensure unique paths for tests that involve reading or writing temporary files. This allows tests to run asynchronously and in parallel, providing increased flexibility and efficiency for testing scenarios.
Upgrade to Bandit from Cowboy
In a discussion about the cowboy alternative web server called Bandit, it was revealed that upgrading to Bandit resulted in reduced CPU utilization by 20% and a 40% decrease in request latency for static pages in a production service managing 3 million requests per month. While the impact may differ depending on the nature and content of the site being served, the conversation highlighted Bandit's progress and stability, encouraging developers to explore Bandit as a potential solution for their Elixir projects.
In this week's podcast, we cover the release of Elixir 1.16.1 with its various bug fixes, delve into German Velasco's ExUnit testing tip for running tests in parallel, explore the performance boosts experienced by Thomas Millar after upgrading to Bandit, and celebrate the 10-year anniversary of Inch, René Föhring's documentation analysis tool. We also discuss the innovative use of Elixir Protocols for customized route parameters in Phoenix, the creation of a new Kino for embedding YouTube videos into Livebook, and a stark reminder of the potential dark side of AI and ML with a deepfake phishing scam that cost a company $25 million, and more!