Code Generators (Re: Temporary variables)
morphic at hotmail.com
Sun Jun 20 23:06:25 UTC 1999
Whether or not code generators are evil is of course a matter of opinion.
Unless I'm wrong, the code generator Chris is talking about (WindowBuilder)
is a mandated tool. Hand coding windows is unacceptable for many
applications, especially when 2 or more people work on the same codebase.
Like it or not, most commercial Smalltalk GUI builders generate code.
>From: Marcel Weiher <marcel at system.de>
>Code generators are evil, and should be unnecessary. If the
>necessity for code generation arises, it is an indication that either
>the developer hasn't abstracted the problem enough, or that the
>language is not sufficient for expressing the abstraction.
> > From: "Norton, Chris" <chrisn at Kronos.com>
> > I really have nothing new to add to the discussion, as I agree
>with most of
> > the people who described various ways to do away with extraneous
> > variables, but I wanted to point out that in my experience, the
> > I've run across that had a size problem of any kind were the
> > methods that are generated by WindowBuilder Pro (I use
> > with VSE). In my experience, code generators will make some generic
> > assumptions and they rarely produce code that is as tidy as I like
> > In those special cases, I routinely break up the generated methods into
> > smaller ones.
Get Free Email and Do More On The Web. Visit http://www.msn.com
More information about the Squeak-dev