[erlang-questions] Trying to learn the Erlang Way

Robert Wilkinson <>
Fri Feb 7 17:56:07 CET 2014


On Fri, Feb 07, 2014 at 09:35:54AM -0600, Garrett Smith wrote:
> On Fri, Feb 7, 2014 at 8:47 AM, kraythe . <> wrote:
> > Man I feel silly. but then I am fighting a chest cold. I guess this happens
> > easier when you don't have completion or highlighting that I am used to in
> > an IDE.
> 
> [1] There is one stylistic change that I would recommend, vis-a-vis
> that blog post, which is to *selectively* use variables to pull
> important, side effecty operations out of nested function calls so
> that they appear earlier in the function (western style top-down,
> left-right reading) and get named results (via variable binding). So,
> e.g.
> 
>     do_something_next(do_something_first())
> 
> Becomes:
> 
>    FirstResult = do_something_first()
>    do_something_next(FirstResult)
> 
> God names are essential - these are terrible names, but you get the idea.

All Hail Eris !! Though some prefer Yahweh, Osiris or Shiva?

Bob



More information about the erlang-questions mailing list