Patterns in Perl

davorg on 2002-01-10T08:55:14

Last night I went to a new Perl discussion group that has started up in London. It's organised by Nigel Wetters and and is based around the ideas on his Patterns in Perl website.

The idea is that we can take the patterns from Design Patterns (aka the "Gang of Four" book) and reimplement them in Perl.

About a dozen people turned up to a small pub in a very obscure part of London and there was a lot of interesting discussion. Some of it was even on design patterns :) A few general points were raised:

  • Good programmers have probably invented the well-known patterns themselves, even if they don't know the names for them from the Gang of Four book.
  • It's useful to introduce people to the Gang of Four terminology as it aids communication.
  • Some of the patterns in the Gang of Four book solve problems that don't exist in Perl and therefore would either be trivial or unnecessary in a Perl application.
  • There are probably other patterns that are used in Perl programs that aren't in the Gang of Four book.

We also took a closer look at the Factory pattern which the first one in the book and the first one that Nigel had written about on his web site.

All in all it was an interesting evening. Nigel's planning to hold them every week and I'll certainly get along to as many as I can.


bad link

jmm on 2002-01-10T14:57:58

The link www.patternsinperl doesn't work. (Adding .com or .org doesn't fix it either.)

Re:bad link

davorg on 2002-01-10T16:18:28

Oops. Sorry. Fixed now.