Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Are design patterns worth it?

by Corion (Pope)
on Aug 28, 2002 at 16:45 UTC ( #193501=note: print w/ replies, xml ) Need Help??

in reply to Are design patterns worth it?

Personally, I really like Design Patterns, but you always have to take them with a grain of salt, much more like a metaphor or legend than a design specification, describing in an abstract way, how a certain class of problems has been approached and what the consequences of that approach were. They also allow me to communicate easier with other people, as a Design Pattern creates a common name for something that would have to be described otherwise.

When looking at Design Patterns, you must decide, if you are the intended audience. The GoF book focuses on a C++ audience - Perl already has other idioms that deal with many of the patterns, for example the Iterator pattern, which is simply foreach, so not all patterns you find in the GoF book are directly useful for a Perl programmer (and in fact, not many are useful with a dynamic language).

But patterns are also available for user interface design and other stuff, and these patterns can be helpful, if you want to provide a feature, but don't know yet, how it could be presented to the user.

perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web

Comment on Re: Are design patterns worth it?
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://193501]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2015-11-27 21:57 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (734 votes), past polls