How to pattern match a function in Elixir

I found how to pattern match a function on Improve error messages for invalid expression in match · Issue #5649 · elixir-lang/elixir.

x = &List.first/1
case &List.first/1 do
  ^x -> true
end

I also wrote a summary for it: How to pattern match a function in Elixir - dsdshome

Feel free to check it out and leave some comments.

A deeper dive in Elixir's Plug

Being new to Elixir and Phoenix, I spend quite some time in the projects’ documentation. One thing that stood out for me recently is the first sentence of Phoenix’s Plug documentation: “Plug lives at the heart of Phoenix’s HTTP layer and Phoenix puts Plug front and center.”

So naturally, I felt compelled to take a deeper dive into Plug and understand it better. I hope the article helps you out as well, you can read it here.

Correios CEP 0.3.0 released! Zip code validation.

Correios CEP allows to find Brazilian addresses by zip code, directly from Correios database. No HTML parsers.

Changelog for version 0.3.0:

  • Validate zip code.
  • Typespecs and Dialyzer.

Check it out at:

Cloak v1.0.0-alpha.0 released!

Cloak is an encryption library which helps you encrypt your Ecto schema data, and it’s now nearly at 1.0.0!

http://blog.danielberkompas.com/2018/12/31/cloak-1.0.0-alpha-released/

Introducing Whistle, a different approach to building interactive web apps in Elixir

Whistle is an implementation of an Elm(ish) architecture in the server, letting you write interactive web apps entirely in Elixir.

https://moboudra.com/whistle-interactive-web-apps-with-elixir/

Elixir behaviours for blockchain hard fork configurations

https://www.badykov.com/ethereum/2018/12/29/elixir-behaviours-for-blockchain-hardfork-configuration/

Idempotent Supervision Tree

Just blogged on trivial, but often ignored glitch while performing initialization during GenServer linked start with direct pattern matching instead of Kernel.SpecialForms.with/1.

https://dev.to/mudasobwa/idempotent-supervision-tree-1ha

ExVenture Updates for December 2018

ExVenture is a text based MMORPG. This month continues the refactor push to change up how the eventing system for NPCs works, and formalizing the internal format language with leex and yecc parsing. Check out the post for more information!

https://blog.oestrich.org/2018/12/exventure-updates

How to perform Hot Code Swapping in Elixir

https://medium.com/blackode/how-to-perform-hot-code-swapping-in-elixir-afc824860012

Hot code swapping is replacing or adding components without stopping or shutting down the system. It is frequently called as hot-plugging.

In software development, hot swapping is used to upgrade or update the system without interrupting the current running system. It helps us with less downtime at the time of upgrading.

OK! Stories are always good to hear. Let’s dive into the code.

Counting Real-Time Trades

Counting Real-Time Trades

In this article we start to see how to aggregate Coinbase trades in real-time, using the GenServer behaviour. We’ll build an aggregation process that groups and count the trades.

Plug in JSON API Readonly Webserver

Camarero is a ready-to-use solution to add some JSON API functionality to the existing application or to implement the read-only JSON API from the scratch when more sophisticated (read: heavy) solutions are not desirable. Below is the typical picture of how Camarero is supposed to be plugged in.

It is blazingly fast.

https://dev.to/mudasobwa/plug-in-json-api-readonly-webserver-17b4

Authex v0.3.0 released!

Just released v0.3.0 of Authex. Authex provides an easy way to integrate authentication + authorization into your API via JSON web tokens.

The latest release has some great new features, including:

  • Easier configuration through a runtime init callback.
  • Simplification of Authex.Serializer to convert custom data to and from tokens.
  • Introduction of Authex.Repo behaviour for handling custom blacklist and banlists.
  • Improved documentation.

Please check it out at:

Some ways writing parameterized testing with ExUnit

https://dev.to/niku/parameterized-testing-with-exunit-1j3d

Elixir vs. Ruby and Phoenix vs. Rails: What to Choose and Why

Here https://mlsdev.com/blog/elixir-vs-ruby-and-phoenix-vs-rails-what-to-choose-and-why you will learn about these web programming languages, compare them, and see the way they should be better utilized.

Introduction to Jaxon - JSON parser with streaming support

Just published an introduction post to Jaxon, explaining how to use it and an overview on how its implemented.

https://moboudra.com/intro-to-jaxon-json-parser-for-elixir/

Elixir Compilation Hookbook

Just blogged on why and how to use @after_compile hook with __using__/1 macro to improve the feedback on wrong usage.

https://dev.to/mudasobwa/elixir-compilation-hookbook-6dp

ElixirMix Podcast 033 - Databases and Elixir with Kamil Lelonek

In this episode of ElixirMix, the panel talks with Kamil Lelonek about PubSub features in Postgres, other cool Postgres features, using other databases in Elixir and much more!

Podcast Episode

IntelliJ Elixir 10.2.0

  • Umbrella projects in single-language IDEs like Rubymine using multiple IDE Projects in one window.
  • Ignore assets to prevent phoenix and phoenix_html mix.exs files being imported from assets/node_modules symlinks
  • Remove unused variables in Elixir debugger server
  • Protect from spurious AssertionError from VirtualFilePointerContainer when walking SDK paths.
  • Use :path to get external path to deps not in deps folder of project root.
  • Ignore :tag and :ref when determining path to deps.
  • No longer use forked version of TerminalExecutionConsole, so that IEx and IEx Mix run configurations work in IntelliJ IDEA 2018.3.

Installation Instructions

Validate your passwords using Elixir and haveibeenpwned.com's API

Hey folks, check out my latest article on validating your password using haveibeenpwned.com’s API & Elixir, without using any external HTTP clients.

https://ieftimov.com/haveibeenpwned-password-lookup-elixir

How to set the GenServer State On Fly  :sys module -Elixir/Erlang

Be dynamic to be historic.

Applies for small changes in GenServer State Maintenance.

https://medium.com/blackode/how-to-set-the-genserver-state-on-fly-elixir-22846931bcd9

Previous page Next page