Ratings & Reviews

Log In to review this item

Review Perlish Patterns

Your Rating:
Not Yet Rated Not Yet Rated Not Yet Rated Not Yet Rated Not Yet Rated
Lulu Sales Rank: 23151
Log In to rate this item
. . . . . Not Yet Rated  

2 People Reviewed This Item

. . . . . No Rating  
Oct. 11, 2009 By tracy
As a professional software developer who writes in many languages for many
reasons, I've written more than a few scripts in Perl. I often became
frustrated, however, when implementing certain object-oriented designs in
Perl. So much that I eventually abandoned Perl's object model altogether.
It was as if the object-oriented design I'd come to rely on was suddenly
burdensome overkill. Now I understand why.

Design Patterns (Gamma et al.) was (and is) a hugely popular and important
book for OO developers. It has become so well regarded, in fact, that
many developers I know now believe that the best solution to most problems
is an object-oriented one. Perlish Patterns encourages the reader... More > to
instead consider Design Patterns as a collection of important problems
that happen to have OO solutions. Many of them, it turns out, have more
Perlish solutions as well. That is what this book is about. Of course,
the author also reminds us that Perl has a full object system and,
especially as your problem complexity increases, you may still want to
fall back on the object-orient solutions found in Design Patterns.

While accessible to the beginning Perl student, this is not a book about
beginning in Perl. The author does assume some very basic knowledge of
Perl. For example, the reader should already know how to create a simple
"Hello world" program, be familiar with some basic built-ins (like 'print')
and know what a blessed reference is.

The book is divided into two parts. Part I covers some basic (and not so
basic) techniques that will be useful throughout Part II. Part I
introduces data containers, closures, mixins, and recursion. Part I,
especially the clear explanations for dealing with references, was worth
the price of admission for me. It seems I always have to look up some
this after being away from Perl for too long.

Part II describes the patterns themselves. In comparing the organization
here to that in Design Patterns you will find that while many patterns
have their own chapter, some closely related patterns have been grouped
together. The last chapter contains a larger collection of patterns that
the author felt required little discussion, either because he considered
the original object-oriented solution to be the preferred one or because
the implementation in Perl was too simple to require its own chapter.

Perlish Patterns changed the way I think about and approach writing
programs in Perl. More importantly, it's made programming in Perl more
enjoyable, more fun. < Less
. . . . . No Rating  
Oct. 15, 2009 By r.p.levy
"Great book!" I highly recommend this book. I think it was supposed to be released by APress, but for whatever reasons the book was pulled before release. Fortunately for us though, Crow self-published it on Lulu (and discarded the subtitle "secrets of the cpan masters"). It's an excellent book that draws on the insights of the Design Patterns gang of 4 folks, but shows how the idiomatic and creative use of Perl enables better control flow and program organization than would be possible simply applying the ideas of GoF in strictly OO Perl. Crow uses OO technique where they offer an advantage in elegance or clarity, but applies more direct techniques in cases where the OO methodology would only get in the way. Perl is a lot more flexible and expressive than a language like Java or C++ (though less so than Lisp), and this enables Crow to go beyond the GoF patterns and get into techniques of the variety explored in Dominus's classic Higher Order Perl, but in the context of patterns.

You Recently Viewed

[Loading...]
 

Product Details

Copyright Phil Crow (Creative Commons Attribution-NonCommercial-ShareAlike 2.0)
Published July 8, 2009
Language English
Pages 177
 
Binding Perfect-bound Paperback
Interior Ink Black & white
Dimensions (inches) 6.0 wide × 9.0 tall

Tags

Log In to tag this item

Tag This Item

Separate tags with commas, e.g. "monkeys, beans, fiction"
There are no tags for this item.