A guide to writing Erlang in an idiomatic way