ElixirWeekly: The Elixir Community Newsletter, covering community news you easily miss, shared on ElixirStatus and the web, in one email every Thursday.
This is part 3 in a series on unit testing in Elixir. In this post, I show two of the places where I break some of the rules that I set out earlier when I’m writing unit tests: http://devonestes.herokuapp.com/unit-tests-in-elixir-part-3
If you want a fun project to hack on over the upcoming holiday, pick up some NeoPixel RGB(W) LEDs for your Raspberry Pi-based Elixir/Nerves device and check out the latest release of
blinkchain (formerly known as
nerves_neopixel). It now supports commands to draw on a mutable 2D virtual canvas (e.g. composed of a bunch of strands or one or more Pimoroni Unicorn hats) instead of having to calculate the updated values for all LEDs manually each “frame.”
Check out the example and let me know what you think!
My notes on learning Elixir and how it helped me with my day job, where I dont write Elixir.
We sometimes run into a problem where we want to compare two enumerables for content, irrespective of ordering. So we’ve added
equaliform (recursive version) methods to morphix to handle that situation. https://hex.pm/packages/morphix
An optimization I made to use a map instead of enumerating through lists to match elements of a big dataset took the operation time from 30+ minutes to less than a second.
This version is using cmake for the build and allows you to customize your installation by reusing the libraries installed on your system: https://gitlab.com/barrel-db/erlang-rocksdb/tags/0.26.0
also available on hex.pm : https://hex.pm/packages/rocksdb
Access module, composable & extensible abstraction to get & update deep nested data.
Built Custom metrics, and custom analytic based on top of graylog.
In this part we’ll do a step further, making both keys and values persistent. Taking inspiration from the Bitcask design, we will see how to enhance our implementation and to recover the Index in the case of a failure.
I’d argue Elixir has relatively few gotchas. It’s a simple and consistent language and when you first learn it there’s only a few things that are genuinely counter-intuitive and catch you by surprise…
For this year’s Advent Of Code, I will be posting my solutions in Elixir with a breakdown of how the functions work and things I learned along the way.
Today I published a new package where I’ll collect all the best and most helpful assertions to help you write better tests! I add some version of these to pretty much every project I start.
The package is called, fittingly enough,
I was on a recent episode of Elixir Mix. We talked about a wide range of Elixir-related topics, and how I’m putting Elixir to good use in two of my ongoing projects.
More bare metal Elixir. This time we open a remote terminal into our GRiSP application over a wifi connection.