Skip to content

PiotrJustyna/erlang-lab

Repository files navigation

readme

Erlang lab. I use this repository to experiment with Erlang. All projects in the repository support Visual Studio Code remote containers, meaning that the code can be pulled and ran on any machine supporting docker. No configuration required.

applications

name vs code build support* description
1_hello_world Just a hello world application. Doesn't even print out the "hello world!". It just serves as a template for rebar3 + supervisor + application behavior usage.
2_generic_server_1 First generic server from Programming Erlang 2nd edition.
3_modules Fun with modules + io.
4_guards Exploring guards, if and case of statements to memorize their exotic syntax.

*vs code build support - support for the popular [cmd/ctrl]+shift+b shortcut. Applications supporting this have an entry in the erlang-lab/.vscode/tasks.json file.

adding new applications

This is more like a note-to-self type of affair. I often switch between projects and languages and sometimes forget basic commands. Since all applications in this repository support rebar3, to add a new application, execute this from the terminal: rebar3 new app APP_NAME.

reading

to watch