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

Zenaan Harkness zen at freedbms.net
Tue Oct 20 19:42:14 PDT 2009


On Tue, Oct 20, 2009 at 04:48:26PM +0200, Harry Karadimas wrote:
> > From: Zenaan Harkness <zen at freedbms.net>
> > On Fri, Oct 16, 2009 at 11:41:43AM +0200, Harry Karadimas wrote:
> > > Reminds me of the debates about SQL Null
...
 
> > Now we're back to handling all cases.
> > 
> > To summarise my points:
> > 
> >    -  Real world dictates we handle complexity.
> > 
> >    -  Incomplete concept handling is false simplicity.
> > 
> >    -  Concept handling inconsistency is bad complexity.
> > 
> >    -  We should aim for conceptually complete, yet consistent, tools
> >       (according to the domain of the tool eg view handling,
> >       programming, etc)

> In short, I agree.

> Let's not overrate these issues; after all st has worked quite 
> well for me (and for others I guess) in the current form. After 
> all, having only whitespace in the model may also be treated as
> a model issue; if whitespace means empty, the model could be 
> responsible for trimming strings.

Ack.

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

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