Category

Elixir

Elixir is a dynamic, functional language designed for building scalable and maintainable applications. Elixir leverages the Erlang VM, known for running low-latency, distributed and fault-tolerant systems, while also being successfully used in web development and the embedded software domain.

Hiding and Revealing Struct Info with `inspect`

Hiding and Revealing Struct Info with `inspect`

Hiding and Revealing Struct Info with `inspect`.There are two ways to hide information when printing structs in Elixir...

Read More

Elixir lists vs Elixir tuples

Elixir lists vs Elixir tuples

Elixir lists look just like arrays from C, Java or JavaScript, but they're not. They're not laid out contiguously in memory. They're a series of nodes where each node holds a piece of data and a pointer to the next node...

Read More

Streams in Elixir

Streams in Elixir

Streams support lazy operations as opposed to eager operations by enums. In short, streams are lazy, composable enumerables. What this means is Streams do not perform an operation unless it is absolutely needed...

Read More

Deep understanding of Map Reduce in Elixir

Deep understanding of Map Reduce in Elixir

Enum.map_reduce/3 can replace Enum.reduce/3 when the reduce maps each element to another element and we also want to maintain some state or build a result along the way.

Read More

Keeping Test Data In Context in phoenix framework

Keeping Test Data In Context in phoenix framework

Phoenix 1.3 introduced “contexts”, which its docs describe as “dedicated modules that expose and group related functionality.” They are usually used to define...

Read More

Accumulating Attributes In Elixir

Accumulating Attributes In Elixir

Module attributes in Elixir serve three purposes.They serve to annotate the module, often with information to be used by the user or the...

Read More

Format Your Elixir Code Now

Format Your Elixir Code Now

Autoformatting is a common practice in languages communities like Go. Now, this practice is coming to Elixir as part of the language...

Read More

Data types and Operators in Elixir

Data types and Operators in Elixir

Elixir is a dynamic, functional language designed for building scalable and maintainable applications. For more about Elixir, installation and documentation, ...

Read More

Introduction to URI module in elixir

Introduction to URI module in elixir

Today, we will learn about the built-in elixir module for working with URIs.This module provides functions for working with URIs (for example, parsing URIs or encoding query strings)...

Read More

Formula and Lazy Combinators

Formula and Lazy Combinators

We in Fintech often require to check the values for simple arithmetic conditions, like whether the exchange rate is greater than the desired value, or like

Read More

Elixir Trickery: Cheating on Structs, And Why It Pays Off

Elixir Trickery: Cheating on Structs, And Why It Pays Off

Elixir Trickery: Cheating on Structs, And Why It Pays Off. Structs are there for a reason (we'll start from a brief overview), and that's certainly not for us to cheat on them...

Read More

Test-Driven Development of Binary Search program in elixir

Test-Driven Development of Binary Search program in elixir

Binary search is one of the fundamental algorithms in computer science. In order to explore it, we'll first apply binary search and create test ...

Read More