[erlang-questions] Onboarding programmers who are new to Erlang

Robert Virding <>
Fri Aug 29 03:08:52 CEST 2014


Another problem with going to straight into OTP behaviours is that they
hide the concurrency, you can write a large full fledged application
without a ! or receive in sight. There is of course nothing wrong with this
per se, but sometimes people miss the fact that there is concurrency here
and everything is running in separate processes and communicating with
messages. They see gen_server:call as a function call. This is definitely a
problem.

Robert



On 29 August 2014 02:17, zxq9 <> wrote:

> On 2014年8月28日 木曜日 16:43:13 Raoul Duke wrote:
> > also: (do you agree or not, i am curious) teach that one should reach
> > for OTP first, rather than assuming one will do it at the "low level"
> > of rolling your own stuff from "base" erlang-w/out-otp.
>
> I know this wasn't directed at me, but its an important point, IMO.
>
> In my experience teaching someone OTP straight away results in the Erlang
> equivalent of boiler-plate. A lot of unnecessary gen_server stuff, for
> example.
> Its similar to a Java programmer starting out with Python and being class
> happy and writing setters and getters everywhere.
>
> I've found it better to instead pose different bits that OTP handles as
> problems first, in whatever language, and letting the person work through
> the
> issues involved themselves so they know where the problem areas actually
> are
> first. Then, showing them OTP is this "wow, thank goodness someone wrote
> all
> *that* already!" sort of experience, and they have a firm grip on just what
> tools are being provided instead of wandering around with this vague sense
> of
> problem->tool applicability.
>
> Fred seems to made a deliberate effort at this in LYSE and to great
> effect. The
> downside is that something like LYSE takes more time to get through than a
> blog tutorial intended for copypasta programming -- but that's time well
> spent
> by my way of thinking.
>
> -Craig
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140829/6792be82/attachment.html>


More information about the erlang-questions mailing list