A few thoughts on date/time handling in Erlang

Handling date and times is a thorn in every experienced developer’s side. If you haven’t had the pleasure yet, you will. ;) Coming off a week of standardizing some datetimes across an Erlang app, here’s a few personal thoughts.

  Sep 3, 2018 (rev. Oct 11, 2025) ·  5 min

Convert code from C# to VB.NET and back

If you work with the .NET Framework long enough, you may eventually find yourself tasked with converting one language to another, either by request or necessity. But conversion isn’t always necessary - it’s possible (and easy!) to have one solution with multiple languages.

  Jul 18, 2018 (rev. Oct 11, 2025) ·  4 min

Getting rid of unused function errors when using timers in Erlang

Have you ever tried to execute a function at some future time in Erlang? You can, with a timer, but the compiler may complain that the function you’re calling via the timer is unused. Why is that and what can you do?

  Jun 6, 2018 (rev. Oct 11, 2025) ·  3 min

Are property accessors possible in Erlang records?

I ran into a problem in Erlang yesterday that made me think… is there anyway to implement a property accessor on a record?

  May 22, 2018 (rev. Oct 11, 2025) ·  8 min

What is an API wrapper?

When you find an API to use in your app, you’ll need to access it in a specific language - not always an easy or straightforward task. As long as you’re doing all that work, why keep it to yourself? Let’s look at creating an API wrapper that you can share with others!

  Jan 25, 2018 (rev. Oct 11, 2025) ·  5 min

Taming the Erlang Beast

Becoming an Erlang developer has not always been easy, but over the last couple of years I’ve learned a few ways to tame the beast. It doesn’t need to become any other language, but there’s definitely room for improving the developer experience!

  Nov 1, 2017 (rev. Oct 11, 2025) ·  9 min

Concatenate Binaries and Strings in Erlang

Concatenating strings and binaries in Erlang can get ugly quick. Let’s make it easier.

  Sep 26, 2017 (rev. Oct 11, 2025) ·  2 min

What is an API?

An API is an Application Programming Interface, but what’s that really mean? In a more practical sense, it’s one programmer hiding the (possibly messy) details of their own code behind a nice veneer, in order to make it easier for another programmer to consume it in their own program.

  Jul 23, 2017 (rev. Oct 11, 2025) ·  6 min

Evaluating a string of code in Erlang at runtime

Did you know that Erlang has the ability to read in a string representing a line of code to execute at runtime? It can parse it out, evaluate it and return the value. Let’s see how… Evaluating Simple Expressions At its most basic, we can just read any expression passed in and execute it. 1 2 3 4 5 6 7 8 9 10 11 12 -module(parser). -export([ evaluate_expression/1 ]). -spec evaluate_expression(string) -> any(). evaluate_expression(Expression) -> {ok, Tokens, _} = erl_scan:string(Expression), % scan the code into tokens {ok, Parsed} = erl_parse:parse_exprs(Tokens), % parse the tokens into an abstract form {value, Result, _} = erl_eval:exprs(Parsed, []), % evaluate the expression, return the value Result. Let’s try passing in some simple arithmetic expressions, remembering that statements end in commas and functions with a period, so our strings need to include those punctuations: ...

  Mar 5, 2017 (rev. Oct 11, 2025) ·  7 min

How to Create a Git Alias

If you’re unfamiliar with Git’s “alias” feature, it provides a way to create shortcuts for other Git commands, which can save you a lot of time. They’re easy to setup and maintain too. Let’s see how.

  Jan 28, 2017 (rev. Oct 11, 2025) ·  4 min