LWN.net Logo

(mechanism,policy,glue) parallel to (model,view,controller)

(mechanism,policy,glue) parallel to (model,view,controller)

Posted Feb 13, 2003 21:15 UTC (Thu) by dneto (guest, #4954)
Parent article: The Art of Unix Programming

The best designs in the GUI world tend to boil down to
a three-way partitioning of the design. As I know it,
this was "discovered" by the early SmallTalk community
and named the Model-View-Controller paradigm.

This is very closely matched by the separation of
mechanism, policy and glue.
"Mechanism" is roughly equivalent to the data "model",
"policy" is roughly equivalent to your UI view,
and "glue" is much like the controller code that
hooks them up.

So the GUI community already knows the basic tenets,
and enunciated it long ago. But it's always worth
repeating.

As an example, the Glade tool naturally cleaves
your UI policies from your underlying model.


(Log in to post comments)

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds