Erlang's biggest gotchas?

From my perspective, I could add that being familiar with concurrency will help a lot in learning OTP.

If you miss such background and its your first exposure to environment where everything is concurrent by default, you might consider investing time in playing with processes on your own, e.g.:

  • create, destroy a bunch of processes
  • organize them in some way
  • enable communication exchange between them
  • write a process that responds to messages in the loop
  • learn how you register and find a process in the environment

Also you might play around and try to visualize the processes execution in some way:

  1. observer might be useful if you like GUIs
  2. add some io:format including self() output
  3. or if you’re ambitious - invest in learning how to enable simple tracing - the earlier you posses this knowledge the better (edbg might be the easiest to learn I’ve seen so far, looks like great tool for learning)
6 Likes