<div dir="ltr">Hi Imants,<div><br></div><div>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 in between?</div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>regards,</div><div>Vlad</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 19, 2015 at 2:16 PM, Imants Cekusins <span dir="ltr"><<a href="mailto:imantc@gmail.com" target="_blank">imantc@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">> "ok, a method called 'fred'. Wonder what it does?"<br>
<br>
</span>well let's just say if I understand program flow, this is not a<br>
problem. If I do not understand it, long explicit signatures are not<br>
of much help.<br>
<br>
my problem was that until now my mind was too cluttered with function<br>
signatures.<br>
<br>
now when I look at a function body, I can focus on what happens within<br>
this function. I will worry about other functions in turn - when I<br>
look at them.<br>
<br>
basically, navigating the code will happen much less often. the mind<br>
can take a rest.<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br></div></div>