[erlang-questions] Avoiding boilerplate code when using gen_server

Garrett Smith g@REDACTED
Wed Mar 21 21:23:36 CET 2012

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 :)


More information about the erlang-questions mailing list