[Twisted-web] livepage.glue and Componentized

Christopher Armstrong radeex at gmail.com
Mon Jul 25 18:05:54 MDT 2005

On 7/26/05, Mike Pelletier <mike at mkp.ca> wrote:
> > Do you really think it would make
> > any difference if I had instantiated my own?  (I'll give it a shot this
> > evening, but it's really just more voodoo...)
> Apologies if my tone got away from me.  I do appreciate any theories you care
> to share.  There's also an element of "new hammer syndrome" going on, the
> application could well have been designed without components.  But it's such
> a shiny hammer...

no worries. :)

Anyway, I would say that you should maintain the idea that
componentized objects should be made up of tightly-related components.
This isn't to say that the code of the components should necessarily
be intimately aware of the other components, but only that each
componentized object should have a pretty cohesive purpose in life.
(the same could be said about any "object", really).

One of the most common misuses of components that I see is to use them
for arbitrary 1:1 mappings. Indeed, "new hammer syndrome" often causes
people to forget about the fact that Python has attributes. :)

  Twisted   |  Christopher Armstrong: International Man of Twistery
   Radix    |    -- http://radix.twistedmatrix.com
            |  Release Manager, Twisted Project
  \\\V///   |    -- http://twistedmatrix.com
   |o O|    |  

More information about the Twisted-web mailing list