[erlang-questions] Onboarding programmers who are new to Erlang
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
On 29 August 2014 02:17, zxq9 <zxq9@REDACTED> 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
> 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
> issues involved themselves so they know where the problem areas actually
> first. Then, showing them OTP is this "wow, thank goodness someone wrote
> *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
> 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
> by my way of thinking.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions