[erlang-questions] Avoiding boilerplate code when using gen_server
Wed Mar 21 21:29:36 CET 2012
On 21 Mar 2012, at 20:23, Garrett Smith wrote:
> On Wed, Mar 21, 2012 at 3:10 PM, Tim Watson <watson.timothy@REDACTED> wrote:
>> On 21 Mar 2012, at 19:22, Garrett Smith wrote:
>> I think it depends on how much boilerplate you're looking at. As an OCaml
>> programmer I have seen a *lot* of work going into removing boilerplate code,
>> and the same in Haskell (although there I am less experienced) and overall I
>> think the payoff you're describing is a value judgement based on the
>> negative impact of using code generation. Generated code is brittle -
>> there's no two ways about it. But it doesn't prevent you from testing or
>> documenting, nor does it have to make your code opaque and difficult to
>> understand, so long as it is not overused - a sprinkle here and there rather
>> than a bucket load.
> Well put!
> I think we're in heated agreement :)
I suspect we are indeed. :D
Good luck with e2 anyway - it looks really cool and I'm going to keep a close eye on it.
More information about the erlang-questions