modperl_design_patterns_and_conway_fused_by_gunther

This is part of The Pile, a partial archive of some open source mailing lists and newsgroups.



To: bakki@navaco.com, modperl@apache.org
From: Gunther Birznieks <gunther@extropia.com>
Subject: Re: [OT] Design Patterns in mod_perl apps?
Date: Sat, 03 Feb 2001 18:57:57 +0800

At 11:42 AM 1/31/2001 -0500, Bakki Kudva wrote:

>I just quickly browsed through Chapter 10 (104 pages !!) and it shines
>light on EXACTLY the sort of things I was thinking about. It is like the
>'Design Patterns' & 'Conway book' fused into one. I also downloaded the
>webware apps so I can disect and learn from them. I'll be busy for the
>next few months:)

Thanks. :)

The download link may be old. You might want to go to the extropiaperl 
project on SourceForge and get latest code using anonymous CVS.

Also, in the last 2 months we really revamped the architecture to change 
from a central control loop to action handlers where a stream of action 
objects where the application is defined by the order and process through 
which the action handlers get processed.  This is similar to the Struts 
project for the Java Servlet API on java.apache.org.

It turns out to be a fairly powerful model that has increased our 
productivity even more.

> > eg we use CoR in filters that are specific to handling content in our apps.
> > We use (depending on how you view it) CoR or flyweight for dealing with
> > stuff like data handlers (which are essentially filters for *incoming*
> > content)
>
>In addition, Webware will give me some real world apps to look at to get
>a sense of how CoR, flyweight etc are implemented, especially in Perl.
>This is right on the money as far as what I am trying to learn.

That was part of our intention. We didn't really spend a LOT of time on 
design patterns, but certainly they had a strong influence.

> >
> > Web apps do operate differently to regular apps and the design patterns or
> > idioms you might wish to use may be different. Since as the GoF book puts
> > it, all patterns have their advantages and also their consequences. Those
> > consequences may be OK for a regular app but not for a web app.
> >
> > There have been tons of articles and books on Design Patterns since GoF
>
>Any specific web design patterns book you would recommend?

If i was back home in the USA I could probably give you quite a few. As it 
is, I am afraid that I've just relying on articles here and there in the 
last 2 years because I never took my entire library with me when I moved to 
London and then to Singapore... I've been traveling more lightweight.

GoF did not introduce Model-View-Controller architecture. But it is 
discussed in Wiley's "A System of Patterns: Pattern-Oriented Software 
Architecture".

I think Addison-Wesley has a series of books based on the Pattern Languages 
symposia over the last many years which gives an overview.

Any article by PJ Plauger I've ever read is pretty good. You can look a lot 
of his stuff up by searching the web for his name plus patterns.

Malveau and Mowbray's CORBA Design Patterns is a really good book for 
anyone doing distributed programming even if it's not CORBA.

The Pattern Almanac from Addison-Wesley doesn't really describe patterns 
all that well but it does provide a lot of references to existing works and 
provides very very short but easy to read summaries of many patterns out there.

The cool thing about the Pattern Almanac is that it has a lot of patterns 
that are not idomatic to OO but apply to many situations.

For example, it even has a section on "Patterns for Designing in Teams"... 
which include  Multiple Competing Designs, Decision Document, 
Creator-Reviewer, Master-Journeyman, and Ad-Hoc Corrections....

Thanks,
    Gunther

===

To: bakki@navaco.com
From: Perrin Harkins <perrin@primenet.com>
Subject: Re: [OT] Design Patterns in mod_perl apps?
Date: Mon, 05 Feb 2001 11:06:38 -0800

Gunther Birznieks wrote:
> GoF did not introduce Model-View-Controller architecture. But it is
> discussed in Wiley's "A System of Patterns: Pattern-Oriented Software
> Architecture".

MVC is frequently used in mod_perl apps.  For example, see
Apache::PageKit.
- Perrin

===

To: perrin@primenet.com
From: Bakki Kudva <bakki@navaco.com>
Subject: Re: [OT] Design Patterns in mod_perl apps?
Date: Tue, 06 Feb 2001 12:41:17 -0500

Thank you for that pointer. I checked http://www.pagekit.org/. Looks
very interesting.
While on the subject I'd like to mention another really nice book by
Mark Grand  called "Patterns in Java" that might be of interest to those
looking into Design Patterns. This book has many additional pattern to
those in GoF such as 'concurrency patterns' and 'filter' which Gunther
was alluding to. Also there is a chapter on UML which was very useful to
me. The patterns are all illustrated with UML.

It would be terrific if those who ARE using Design Patterns in their web
apps could contribute to a 'Design patterns' chapter to Stas's Guide. I
would have been happy to volunteer but for the 
fact that I am way early on my learning curve and it will be a while
before I can do it.

-or-

Gunther, I have two of your books on my shelf and would love to add a
third one, how about it? :))

-bakki

===


the rest of The Pile (a partial mailing list archive)

doom@kzsu.stanford.edu