Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

gav (2710)

  (email not shown publicly)
AOL IM: flufflegavin (Add Buddy, Send Message)

Hacker in NYC.

Journal of gav (2710)

Wednesday August 14, 2002
06:46 PM


[ #7098 ]
One of the things I like most about the journals on use.perl is that I read something interesting and keep it tucked away in the back of my mind. I've just had a cunning idea about pipelines (I may be stealing what OpenFrame does, I must download and investigate).

Basically what I'm thinking is:

  • input
  • data
  • add template burners to pipeline
  • call $burner->process() on each one
  • output results

I'm not suggesting that this is the most revolutionary or interesting thing, but it seems exactly what kind of design will best fit my latest project.

I'm working on what we like to call the 'editor'. It's a tool that allows clients to basically work on and modify services they have. At the moment it is a scary 11k lines of perl. It doesn't use templates and most of the client code is stuck in the single .pl file. I'm trying to work out a nice solution that uses templates and is more modular.

I also did a bit of thinking today about patterns. Basically I'm not sure if this whole pattern business is any cop. I'd rather think about the problem and try to think of a solution rather than trying to fit a solution to the problem. It seems like banging square blocks into round holes. Sure you can get it in but you end up having to use a big hammer.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • Check out OpenFrame, it should do pretty much what you want (esp. 3.00). If it doesn't at least have a look at the Pipeline module -- its designed so that through judicious use of subclassing all sorts of Pipelines can be plugged together, even if the Pipeline segments are not plug-compatible.

    If you're interested, pop on to #openframe on rhizo and have a chat with us, we're on there most of the time (i.e. unless we're asleep and we'll be happy to help out).