Posts

  • How Pattern Matching works in Elixir

    Pattern Matching is one of the fundamental concepts that we need to master while learning Elixir. If you are new to functional programming it may be a completely new idea for you. In majority of the programming languages out there, = is called the assignment operator and as its name...

  • Setting locale variable for fixing unicode issue for Elixir

    Elixir is a language with great unicode support. But recently I encountered a strange unicode related issue when I deployed a Phoenix application to an Ubuntu Server on Digital Ocean. I had the latest stable versions of Erlang and Elixir installed. The issue was not caused by Elixir but it...

  • Difference between views and templates in Phoenix

    Normally in MVC frameworks, the view and the template are essentially the same thing. But in the case of Phoenix Framework, they refer to different components. This distinction often confuses developers coming from other frameworks. In the Phoenix world, templates are files that usually contain the HTML markup and some...

  • How to use Onesignal REST API with Elixir & Phoenix

    Onesignal in an awesome platform for sending push notifications to your mobile and web apps. They provide a feature-rich REST API for programmatically sending notifications from your server to their endpoints very easily. You can read the nitty-gritty details of the API at https://documentation.onesignal.com/reference. In this tutorial, I will show...

subscribe via RSS