[erlang-questions] Process scope variable
Thu Feb 19 14:38:23 CET 2015
Are you sure that you will still understand the program flow in 3 or 6 or
12 months from now, especially if you will be working with something else
Are you sure that the "state server" will only be written to from only one
process? You might be throwing away exactly what Erlang is good at and will
be in no better position than if you had implemented the code in Java or
C++. At least, you might want to use an ETS table instead, where you can
get some kind of protection if implemented correctly.
In my experience, it is usually a poor solution to try to use a different
paradigm than the one the language/environment offer natively (I tried it
in many ways). It can be done, but it requires more work than one thinks
from the beginning, it might become less understandable than one had
planned and in the end it might be faster/simpler to go with a different
language/environment, if the choice of paradigm is not negotiable.
On Thu, Feb 19, 2015 at 2:16 PM, Imants Cekusins <imantc@REDACTED> wrote:
> > "ok, a method called 'fred'. Wonder what it does?"
> well let's just say if I understand program flow, this is not a
> problem. If I do not understand it, long explicit signatures are not
> of much help.
> my problem was that until now my mind was too cluttered with function
> now when I look at a function body, I can focus on what happens within
> this function. I will worry about other functions in turn - when I
> look at them.
> basically, navigating the code will happen much less often. the mind
> can take a rest.
> erlang-questions mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions