Broken Links - A phoenix app Part 1
A screencast where I show how to build a Phoenix application https://www.youtube.com/watch?v=75qu8KNsh7s&feature=youtu.be
Testing Named Agents
This is a followup blog entry on testing named agents for those who would prefer a little reading.
http://dirtyinformation.com/blog/2017/02/03/testing_named_agents
Unix Timestamps in Elixir 1.4
The old Unix Timestamps in Elixir post is by far my most popular one. Because a lot changed in recent Elixir versions when it comes to handling of calendar types (such as dates, datetimes and times), I though it might be a good idea to update it. Here’s a new version with updates for Elixir 1.4 and Ecto 2.1:
http://michal.muskala.eu/2017/02/02/unix-timestamps-in-elixir-1-4.html
Configuring NGINX for Phoenix applications
Using NGINX as a front-end proxy for web applications is a pretty standard setup. There are some things to keep in mind concerning Phoenix, SSL, and asset delivery and this article sums up the details. https://dennisreimann.de/articles/phoenix-nginx-config.html
Deploying Phoenix Apps for Rails developers: Part 2
Deploying Phoenix Apps for Rails deElaboration for the Part 1: deploying Elixir upgrade releases.velopers: Part 2
https://shovik.com/blog/7-deploying-phoenix-apps-for-rails-developers-part2
(sorry, forgot to include the link first time)
Mocks and side effects
This post describes a pattern for implementing code with side effects in a testable way in Elixir.
Playing with Pipes
A look at how pipes can work with things like the if
function. https://davejlong.com/2017/01/27/playing-with-elixir-pipes/
Rome Elixir & Erlang Factory Lite 7th April 2017
There are great speakers in Rome, a beautiful city in a beautiful season talking about Elixir and Erlang. What are you waiting? Grab a ticket http://www.erlang-factory.com/rome2017#register
Testing Named Agents
A screencast on how to test named agents without having intermittent failures. https://www.youtube.com/watch?v=gfI4LVS7pqM&t=4s
Two Duplication Refactorings in Elixir
Here is a step by step process on how to find a eliminate duplication in Elixir code. This example is taken from a real world pull request from Elixir core. http://dirtyinformation.com/blog/2017/01/18/two_duplication_refactorings_in_elixir
Create a riak_core application in Elixir (Part 2)
This is the second part on how to implement a distributed and fault- tolerance application with riak_core and Elixir.
Writing an interpreter in Elixir
A fully implemented and tested interpreter for a scripting language, implemented in Elixir without any external dependencies.
Maybe this can be helpful for somebody. I would highly appreciate any kind of feedback!
Upgrade Releases with Edeliver
Check out the last part of this Elixir deployment mini-series with this article on building and deploying upgrade releases with edeliver.
Serving encoded JSON with POISON
When building JSON APIs you often find yourself in a situation when you have part of the JSON already encoded and want to embed it in a bigger structure. A common solution is to decode the encoded part and embed the outer structure just to encode it back again. It’s obvious how that back-and-forth decoding and encoding is wasteful. Fortunately with poison we have a much better alternative.
http://michal.muskala.eu/2017/01/25/serving-encoded-json-with-poison.html
Flowex - Railway Flow-Based Programming with Elixir GenStage
Flowex is a set of abstractions build on top Elixir GenStage which allows writing program with Flow-Based Programming paradigm. I would say it is a mix of FBP and so-called Railway Oriented Programming (ROP) approach. Flowex DSL allows you to easily create “pipelines” of Elixir GenStages.
More details here: https://github.com/antonmi/flowex
Erlang & Elixir Conference at Buenos Aires
Erlang & Elixir Factory is finally reaching South America!! And I wrote a blog post about it :P
Join us next June 29th/30th! It will be great!
You can buy Super Early Bird tickets starting today through the official site.
We also welcome sponsors :)
Integration Testing Phoenix with Wallaby
Tutorial on writing integration tests for Phoenix apps with Wallaby:
https://semaphoreci.com/community/tutorials/integration-testing-phoenix-with-wallaby
Key transformation after decoding json in Elixir
Useful when you want to transform your input data right after decoding json into Elixir: http://minhajuddin.com/2017/01/24/key-transformation-after-decoding-json-in-elixir/
Credo v0.6.0 released
I just released v0.6.0
of Credo, the static code analysis tool emphasizing code consistency and teaching.
Defql: create Elixir functions with SQL as a body
The module that provides macros to create functions with SQL as a body.
Blog post about the library: https://blog.fazibear.me/sql-queries-as-elixir-functions-5f8b1d67169e
Github repo: https://github.com/fazibear/defql