⚗️ Elixir Tip #43 - Validating options ⚗️
Ever had a typo in an option silently ignored? Keyword.validate!/2 lets you set defaults and raises if any unexpected options are passed in. Perfect for library authors!

⚗️ Elixir Tip #43 - Validating options ⚗️
Ever had a typo in an option silently ignored? Keyword.validate!/2 lets you set defaults and raises if any unexpected options are passed in. Perfect for library authors!
⚗️ Elixir Tip #42 - Unicode aware strings ⚗️
Elixir strings are UTF-8 encoded binaries and the String module is fully Unicode aware. Be careful though, the number of characters and the number of bytes are not the same thing!
⚗️ Elixir Tip #41 - Base encoding ⚗️
The Base module makes it easy to encode and decode binaries using Base16, Base32 and Base64. It even supports URL safe encoding for when your data needs to live in a URL!
⚗️ Elixir Tip #40 - Hashing with :crypto ⚗️
Need to compute a hash or verify a webhook signature? No need for a 3rd party library, the Erlang :crypto module has you covered!
⚗️ Elixir Tip #39 - Working with nested data ⚗️
Deeply nested maps can be a pain to update. Luckily Elixir ships with get_in/2, put_in/2 and update_in/3 so you can reach right in and make your changes!
⚗️ Elixir Tip #38 - Counting with frequencies ⚗️
Before you reach for Enum.reduce to count occurrences of items, check out Enum.frequencies/1 and Enum.frequencies_by/2. Counting things has never been easier!
⚗️ Elixir Tip #37 - Enum chunk_every ⚗️
Need to batch up some work or compute a sliding window? Enum.chunk_every/4 has you covered. Here is a 3 period moving average in a single line!
⚗️ Elixir Tip #36 - Side effects with tap ⚗️
Ever wanted to log or inspect something in the middle of a pipeline without breaking the chain? Kernel.tap/2 runs your function and passes the original value right along!
⚗️ Elixir Tip #35 - Pipe anywhere with then ⚗️
The pipe operator always passes the value as the first argument. But what if you need it somewhere else? Kernel.then/2 to the rescue!
Biggest Winner Last Friday from the "Mag 7" was $TSLA 📈
Will this trend continue today or will there be a reversal? See how Tesla's returns compared with the remaining Mag 7 stocks.
⚗️ Elixir Tip #34 - Parsing options ⚗️
The Elixir standard library offers a convenient way of parsing CLI arguments and casting them to the appropriate types.
How is the "Volume King" $NVDA doing? 📈
Nvidia continues to dominate trading volume and is one of the most closely watched names in the stock market. Here’s a look at its latest candlestick action and key price moves traders are watching.
⚗️ Elixir Tip #33 - URI parsing ⚗️
The URI module provides you with a plethora of functions for dealing with URIs. You can parse URIs, encode/decode query params, and generate strings from structs!
Same CEO two different companies: Is there a relation between $TSLA $SPCX?
Elon Musk is the CEO of Tesla and SpaceX. Is their performance related? How will that evolve in the future? Let’s see their current 15-, 20-, 30-, and 50-day stock return correlations.
⚗️ Elixir Tip #32 - Dealing with Zip files ⚗️
Did you know that out of the box Erlang provides utilities for dealing with Zip files? Take a look and see how easy it
is to deal with Zip archives!
Biggest mover last Tuesday from "Mag 7" was $META with a percent change of 3.24% 📈
Seeing all the "Mag 7" 30-day standard deviations, which one seems the riskiest to you?
⚗️ Elixir Tip #31 - Structured Logs ⚗️
Did you know that your log statements can be structured either by using a keyword lists or by using maps?
Biggest laggard last Monday from "Mag 7" was META 📉
See their current 30-day zero-benchmark Sharpe ratios. Will this trend continue today or will there be a reversal?
⚗️ Elixir Tip #30 - @derive inspect protocol ⚗️
Did you know that you can implement your own version of the inspect protocol for your structs? Using the derive attribute you can specify which fields from the struct are visible when inspecting the struct.
Biggest Winner Last Friday from the "Mag 7" was $MSFT 📈
Will this trend continue today or will there be a reversal? See how Microsoft's returns compared with the remaining Mag 7 stocks.