[stringtemplate-interest] null vs missing vs empty vs nonexistent

Joseph Grace ockham at gmail.com
Tue Oct 20 20:23:20 PDT 2009


*Zenaan Harkness* wrote on *Tue Oct 20 19:42:14 PDT 2009:**

> For the cleanest view 'code' (ST templates), data is 'cleaned up'
> not in the view, but in the model.
>
> MVC recursion says that to the extent this 'data cleaning' is a view
> specific thing unrelated to the system's data-model, that a view-model
> is created for just this purpose (distinct from the data-model (which
> business logic uses/ requires) and from view-view (ie ST)).

Ack.

If I understand you properly, the recursive nature of MVC allows for each
MVC component
to be subdivided into MVC as well? So for example, the View can also be
broken down
into three MVC subcomponents, V-Model + V-View + V-Controller.

In ST's case, the V-View could be the functional language ST (very
functional, very pure),
leaving room for a V-Model and V-Controller as helpers to the V-View.
For instance, a V-Model could clean and convert data from input for the ST
V-View,
and perhaps a V-Controller could handle trivia data tweaking, tagging, and
tracking.

Cool.

*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/stringtemplate-interest/attachments/20091020/4610a2fc/attachment.html 


More information about the stringtemplate-interest mailing list