Railway Oriented Programming in Elixir with Pattern Matching on Function Level and Pipelining

Coding seems cool without error checks, does not it? When if/else checks effect the next execution behaviors, then the code becomes a mess. Luckily, there is a pattern called ‘Railway Oriented Programming’ for error handling.

https://medium.com/@mustafaturan/railway-oriented-programming-in-elixir-with-pattern-matching-on-function-level-and-pipelining-e53972cede98

A different approach to elixir test doubles

A proof of concept of a different approach to testing modules in isolation.

http://teamon.eu/2017/different-approach-to-elixir-mocks-doubles/

Create an Elixir web app using Cowboy

This post describes in detail the process of setting up Cowboy server to display a Hello World message.

https://shankardevy.github.io/code/create-elixir-web-app-using-cowboy/

Calculate Execution Time of Your Functions

Like with Ruby lang, the Elixir allows you to code magic without pain. Sometimes, you might need to run a snippet of code before and after execution of a block of code on several function calls. For instance, you need to measure the time elapsed in a function call or multiple function calls.

https://medium.com/@mustafaturan/implement-a-basic-block-yield-with-elixir-d00f313831f7

Enjoyable XML parsing with Elixir and SweetXml - Elixir Hex package showcase

https://youtu.be/T-3SPxK1RBo

SweetXml is an awesome hex package which makes parsing xml enjoyable :) Don’t beleive that anything to do with XML can be enjoyable? Checkout https://github.com/awetzel/sweet_xml

Source code of demo can be found at: https://github.com/rawcodehq/sweet_xml_hex_package_showcase

Fast Import and Export with Elixir and Postgrex - Elixir Hex package showcase

https://www.youtube.com/watch?v=YQyKRXCtq4s

Watch us cut the import time from 4 minutes to 1 minute to 1 second and then back to 1.7 seconds :)Watch us cut the import time from 4 minutes to 1 minute to 1 second and then back to 1.7 seconds :)

Building & Publishing Elixir Package from scratch.

This video is about the step by step guide to build packages with clear explanation of package files and registration procees to hex.pm

https://youtu.be/Fh1fKF2tHk0

Highlights of Video:

  1. Each File Explanation
  2. Auto Documentation
  3. User Registration - https://hex.pm
  4. Build and Publishing.

Code School's Free 'Try Elixir' Course

Begin learning the basics of Elixir and take your first steps into the world of functional programming.

https://www.codeschool.com/courses/try-elixir

Deep Learning with Elixir Step by Step

We create a Multi-Layered Neural Network with Elixir called Deepnet and then we show how it can be trained to reach a goal. http://tinyurl.com/jkgy3za

Write your own Sigils - Elixir

Sigils looks simple but they are powerful when you used them perfectly. Lets create our own Sigils…..

https://medium.com/@blackode/write-your-own-sigils-elixir-ce648f531211#.r59adavd8

sigil image

sigil image

End-to-end Testing in Elixir with Hound

Hound is an Elixir library for browser automation. This tutorial will show you how to use it for web scraping and end-to-end testing Phoenix applications.

https://semaphoreci.com/community/tutorials/end-to-end-testing-in-elixir-with-hound

The story of Conn in the world of Phoenix

A detailed study of Phoenix request-response cycle:

http://shankardevy.github.io/code/elixir-phoenix-conn-request-life-cycle/

Throttle / Debounce your tasks / operations, group them together!

https://github.com/princemaple/together

  • group notifications to be sent in one email
    • cancel the previously queued email if another event happens within a short period (type: debounce / throttle)
  • make heavy operations happen less often, i.e. refresh some global statistics
    • allow only 1 operation per certain period (type: throttle)
  • protect some write api
    • additonally you can choose to use the first value in a period (keep: first)
    • or the last value in the period (keep: last)

Designed to work both on a single node and across nodes in a cluster

Checkout the repo README and the docs for more information

harnais - A harness for testing Elixir code

I’ve just published to Hex the first version of harnais.

harnais is a package to help write concise and convenient tests, without lots of the boilerplate.

Parsing Markdown with Earmark - ElixirCasts.io

Check out our latest episode where we parse some Markdown with Earmark: https://elixircasts.io/parsing-markdown-in-elixir-with-earmark

airbrake-elixir 0.5 is released with a bunch of new features.

Now airbrake-elixir supports system-wide error reporting enriched with the information from Plug and Phoenix channels. In case when you don’t want system-wide monitoring you have an opportunity to monitor specified processes or your own GenServers. https://hex.pm/packages/airbrake

Atom Editor for Elixir Development (Revisted)

Developing Elixir applications in the Atom Editor? Revisiting some recommended plugins that most people don’t seem to know about.

Atom Editor for Elixir Development (Revisited)

Screenshot image

Broken Links - A phoenix app Part 06

This episode shows how to run scheduled jobs using crontab and elixir distribution https://www.youtube.com/watch?v=1AIZsdikJBs

Create a riak_core application in Elixir (Part 3)

I just published the third post about how to write riak_core application in Elixir. https://medium.com/@GPad/create-a-riak-core-application-in-elixir-part-3-8bac36632be0#.v7kfuzm0n

Write Your First Macro - Meta Programming

Just now published an article about writing the first macro with a clean explanation. Animated Gifs are added as examples.

Check the following link

https://medium.com/@blackode/write-your-first-macro-elixir-meta-programming-31037e1d83bf#.p1iohgsic

Previous page Next page