On The Insider: Britney's Bikini-Clad Top 10
BNET Business Network:
BNET
TechRepublic
ZDNet
TalkBack 1 of 4:
Next »
Tweak any generated ASM lately?
I really don't get the attitude of people who insist that generated code must be "tweakable".

Think about a C++ compiler (sorry to bring that up) that generates ASM code. Yes, it's "code", but how many people edit it?

I think the "trick" here is to get people to realize that generated Java code from a visual builder is no different than generated ASM code from a C++ compiler. Neither should be expected to be tweakable.

Of course this means that visual builders must have the appropriate ways to hook in "extra" behavior. (That's where mine was going). Something like a combo of template method with strategies that can be plugged in where requested, but the strategy calls don't exist unless you've used a hook in the builder.

Of course a very simple solution would be to
* generate Java code
* compile it to bytecode
* delete the java code

Making it obvious that there is no intent of letting you edit.

I hate "round-tripping" for the reasons you state, and my visual builder wasn't going to support it.

Code generation is your friend, but it should be a one-way process.
- Scott
Posted by: javadude_z   Posted on: 03/05/06 You are currently: a Guest | Members login | Terms of Use

Alert moderator to an offensive message

Subscribe to this discussion via Email or RSS

Tweak any generated ASM lately?  javadude_z | 03/05/06
Re: Tweak any generated ASM lately?  Ed Burnette ZDNet Moderator | 03/05/06
Re: Tweak any generated ASM lately?  javadude_z | 03/06/06
Avoid GUI builder altogether  __howard__ | 03/06/06

What do you think?

SponsoredWhite Papers, Webcasts, and Downloads

advertisement

SmartPlanet

Click Here