[erlang-questions] The gen server simplified (how it works)
littlebobby
littlebobbyerlang@REDACTED
Tue Apr 26 10:59:54 CEST 2011
Well, It might just be a consequence of peoples uncertainty.
When you want to run erlang in production, there is no doubt that you want
to take advantage of it's battle tested code (OTP). So it's going to be some
behaviour, right? Well let's see, it's neither gen_event nor gen_fsm, so it
has to be gen_server.
Why is this question even asked? I think it might be because of a lack of
good explanations with lots of reasoning pro / contra per approach.
How is a person learning about OTP supposed to know the implications of
leaving the tested path? Leaving a tested path is generally a bad thing. To
do so you should be aware of the consequences (or whether there even are
any). People lack the knowledge to gauge the consequences. That knowledge is
only gained from experience - which can include writing spaghetti gen_server
code and recognizing it as a mess.
You have that knowledge and that might make it hard for you to comprehend
the impact of uncertainty here.
--
View this message in context: http://erlang.2086793.n4.nabble.com/The-gen-server-simplified-how-it-works-tp3462381p3474996.html
Sent from the Erlang Questions mailing list archive at Nabble.com.
More information about the erlang-questions
mailing list