Shotgun 0.3.0 with rebar3 support is available in hex.pm
Shotgun 0.3.0 with rebar3 support is available in hex.pm https://hex.pm/packages/shotgun :)
Writing and Publishing an Elixir Library
Recently, I wrote some code to query Google Books API, and extracted it into an Elixir library. Here’s how you can create your own Elixir libraries and publish them to Hex.
Elixir vs Ruby: File I/O performance
Is Elixir an equal replacement for Ruby when it comes to processing files line by line in command line scripts or background jobs?
Read more at Phoenix on Rails blog.
Deppie - Deprecation logging made easy
Deppie is a small library written to make emitting deprecation logs easy - try it out!
Elixir's (Almost) Insane Flexibility: "Mutable" Iteration via Macros
Have you happily sworn off JavaScript-style for, break, and continue after moving to Elixir? It turns out you don’t have to. (Even though you should.)
Let’s have a little fun this Friday – see how macros can bend Elixir to do things that probably shouldn’t be done!
http://ericent.in/elixir/macros/2016/06/10/elixir-flexibility.html
Make Erlang and Elixir (iex) shells save shell history across sessions
Elixir does not support history in the iex shell across sessions. Although you can use the up/down arrows to access previously entered code, this history is lost once you close the iex session. You can use erlang-history to allow persistent history in IEx and Erlang shells.
Using Mix to Easily Create an Ecto Repo
Instead of creating your Ecto Repo by hand in your next Elixir application, use the mix ecto.gen.repo task instead. This post goes over the task including what it does and how to use it.
http://geoffreylessel.com/2016/using-mix-to-easily-create-an-ecto-repo/
2 Million Websocket Connections in Phoenix on DigitalOcean
A reproduction of the 2 million websocket connections in Phoenix benchmark with the focus on making it repeatable by utilizing Docker Machine, Swarm and Compose.
Model callbacks in Phoenix, Ecto and Rails
Can you use model callbacks (after_create et al) in Phoenix just like in Rails? And more importantly, should you?
Read more at Phoenix on Rails blog.
Benchee and Benchee CSV 0.1.0 released - easy and extensible (micro) benchmarking
Benchee (github, hex) is a (micro) benchmarking tool somewhat inspired by ruby’s benchmark-ips. Its goal is to be easy to use, nice output, extensible through plugins and to provide you with statistics, to better see how reliable your results are. BencheeCSV (github, hex) is the first plugin, converting your results to CSV for consumption by spreadsheet and graphing tools.
Read more about it in my the Announcement blog post!
Phoenix Chat Application
Includes private rooms, lobby, blocking users and topical chats https://www.youtube.com/playlist?list=PL_uO5Hv34JImrCd-IRlG8WECYfN0UmLZ7
Deploying Elixir applications with Edeliver
In order to automate deployment process of Elixir-Phoenix applications, we found Edeliver. Resembling Capistrano, it’s practical to configure and distribute releases.
Deploying Elixir applications with Edeliver « Plataformatec Blog
Credo v0.4.0 released; finally create your own custom checks!
Credo v0.4.0 is finally here and with this comes support for custom checks in your projects.
Try it out with the new mix credo.gen.check Mix task!
Over 100 commits went into making this a reality and it is the biggest release to date in terms of community contributed code, which makes me tremendously happy.
You can find it on GitHub and checkout the full CHANGELOG!
Elixir 1.3’s mix xref working its magic in a real world example
In my blog post I took a look at an exciting change coming in Elixir 1.3 - mix xref! It can find undefined modules/functions at compile time, so I went ahead to see if it could find a real world library bug.
Family Ties Part 7 posted, covering some Erlang features "missing" in Elixir
Posted the seventh of a continuing series of articles on similarities and differences between Erlang and Elixir. This article covers a few minor Erlang features that are “missing” in Elixir, and discusses techniques to work around the omissions.
http://daniel-azuma.com/blog/2016/06/06/family-ties-7-lost-and-found
Index of previous articles in the series: http://daniel-azuma.com/articles/family-ties/
Elixir Process Registries - A 10 Minute Tutorial
Process Registries are an essential part of leveraging the OTP framework in complex system. In those post, I do a deep dive on what a Process Registry is, why we need them in the first place, and how to implement one using a GenServer. https://t.co/M0nN0p62eM
Faster Elixir Logger part 2
Coming back to the issue, when I had a free time during a weekend, I setup up trying to test sending messages directly to the process running the console.
https://medium.com/@olafura/faster-elixir-logger-part-2-ddb328eb31f4#.l2jgaoi5h
Separate JS & CSS for admin panel in Phoenix
It’s a common need to have separate precompiled assets for admin panel or other heavy pages. Here’s how to do it.
Read more at Phoenix on Rails blog.
Faster Elixir Logger part 1
I was first inspired to look into this when I looked at this bug #4004
It looked like an interesting problem. I’m going to describe the process I used to solve it. I had used Poolboy before to make a request pool so I wouldn’t overload the service I was using, so I knew that I at least had a basic enough understanding so I could hopefully implement it.
https://medium.com/@olafura/faster-elixir-logger-part-1-8f5424396943#.7mnvu05vw
