→ elixir
All posts associated with elixir
Walk through example of testing in elixir using Mox. This examples walks through testing a module that makes API calls to a 3rd party client. It's a long tutorial.
elixir, mox, mocks, testing – Feb 18 2022
Cachex with PhoenixA tutorial on how to setup Cachex within your Phoenix application. This tutorial walks through setting up a basic cache for some expensive queries.
elixir, cachex, phoenix, caching, genservers – Jan 01 2020
Elixir cond doThis blog post looks into the minor differences between using cond vs case within Elixir.
elixir, cond, filter – Aug 15 2019
Enum intersperseIntersperse is the action of putting something in between other things.
elixir, intersperse, sorting, phoenix – Nov 24 2018
Enum sortSome of the basics of sorting with the Enum module.
elixir, sorting, enum – Sep 23 2018
Enum with an indexIterating over a list and knowing the index or position of that item can be useful. Especially in situations where you know you need to perform some action or update some event.
elixir, lists, enum – Sep 22 2018
Accent charactersPostgres comes with many default extensions and they have one for dealing with accent characters.
postgres, elixir, accent – Aug 25 2018
Case insensitive columnIn Postgres, users can define case insensitive column by using the citext extension
postgres, elixir, ecto – Aug 25 2018
Recursion and Flat MapUse of recursion and pattern matching in this module to create a flat map of a JSON object.
flatmap, recursion, elixir – Aug 15 2018
String concat pattern matchingI have an application that wants to print out a specific format for location data. The data will sometimes be available.
elixir, string, split, pattern, matching – Jul 15 2018
String split atRemove a specific set of characters in a string at a specific point.
elixir, string, split – Jul 14 2018
With and elseHow to use with and else statement for control structure
elixir, with, composition – Jul 14 2018
String splitDivides a string into parts based on a pattern
elixir, string, split – Jul 13 2018
Filter reject oneCreating a custom module with the ability to reject one item in a list. This module will return the final list.