I'm quite new to Erlang coding and want to know what some of the "best practices" are in industry with code examples if possible.
There are a lot of best practices listed on Ericsson's Programming Rules and Conventions page for Erlang. There are many code examples.
Also check out http://www.erlang.org/doc/efficiency_guide/users_guide.html The Eight Myths of Erlang Performance section is a pretty good, and short, read.
By far the best way to get a handle on erlang best practices is to peruse the source code of a couple of successful projects. I found the mochiweb source to be especially instructive.
精彩评论