[stringtemplate-interest] On Pragmatism Violating Purity For The Win

Zenaan Harkness zen at freedbms.net
Tue Oct 20 08:54:58 PDT 2009


On Mon, Oct 19, 2009 at 11:04:43PM -0700, Joseph Grace wrote:
> *Jonathan Buhacoff* wrote on *Mon Oct 19 22:20:04 PDT 2009:***
> > I believe that ST's growth in popularity will be precisely because it
> > maintains a strict separation that attracts programmers who are
> > suffering from spaghetti-code syndrome with other tools.
> 
> No argument here.
> Nothing changes.  If you don't need the hooks, do not use them.
> 
> > Everything that needs to be done to "massage" data can be done and
> > should be done in the model.
> 
> Echoes of "Do it in the model!"
> 
> What if the model is inaccessible, feature frozen, or otherwise source
> code inaccessible?

Reuse-by-Composition. Wrap your closed/ proprietary/ inaccessible model
in an accessible (ie that you write) data-model or view-model, whichever
makes sense for your problem.

You are writing code. Connecting (inaccessible) model to (accessible)
ST. Write the model (wrapper) you need.


> Count your blessings that you have fully
> accessible model code.  Some projects don't and that makes ST a
> dead-end due to logistical difficulties.

I can't picture that.


> > of course you can abuse these with side-effect programming... but that
> > would be abuse of a feature, as opposed to something built-in to
> > encourage entanglement of model and view.
> 
> Really?

Yes. Really.

best
zen

-- 
Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.


More information about the stringtemplate-interest mailing list