The dynamic programmer
A series of notes while I play (once again) with Elixir.
The array module is part of the Erlang STLIB. They work a bit differently that you would expect.
We already saw Tuples and lists in Erlang, time to check on records and how we can use them to structure the data in our programs.
Strings in Erlang are represented as a list of characters, but don't despair the String module is here to help you with all your string manipulation needs.
The last time we explored the functions of this modules that can be used to dynamically executed Erlang code. This time we will look at more common file operations like opening, reading or writing.
After some time playing with Dart is time to come back to Erlang. This time I will explore the functions in the file module that allow to dynamically execute code from files.
Tail and body recursive functions are at the heart of every Erlang program.
There are a myriad of directives you can use in your Erlang modules, even define your owns.
Erlang code is divided in modules. Each module contains attributes and functions. Modules (and functions) are the building blocks of any program in Erlang.
Variables are immutables. Comparison can be performed between any type. Typing is dynamic and some data conversion is performed.
In almost any language working with lists or data is a fundamental part of programming. Let's see how lists work in Erlang and some of the tools we have to work with them.
5 or 6 years ago I started to learn Erlang for the first time. I read a book, follow an online tutorial and them I move on with other projects. It's fair to say that I didn't learn much at all.