Nicolas Williams wrote:
> With extended templates svccfg(1M) is actually fairly high-level.

It doesn't respect the hidden attribute, and it sounds like its respect for 
"required" is marginal.  I haven't checked its respect for the other 
constraints.

> It's still limited in that complex "business logic" is still beyond SMF's
> grasp (hey now, don't go adding an extension programming language to
> SMF).

Weeeellll... maybe.  Programming language, no.  Way to hook in dynamically 
loaded validators?  Maybe.  The more that validation can be embedded in 
SMF, the less that has to be implemented in the various user interfaces, 
the less that gets duplicated between the various user interfaces, and the 
more that those user interfaces are consistent.

Look at it like you might look at a DBMS:  best practice is to put as much 
validation and business logic in the schema as possible.

Reply via email to