"That which is overdesigned, too highly specific, anticipates outcome; the anticipation of outcome guarantees, if not failure, the absence of grace."
-- William Gibson, All Tomorrow's Parties
Just not right.

<@andyg> anybody around? what's the best way to detect what engine you're running under?
< bda> [Wed Jun 8 20:16:33 2005] [catalyst] [debug] Loaded engine "Catalyst::Engine::Apache::MP13::Apreq"
< bda> ?
<@andyg> from within the code I mean
<@andyg> I'm writing a plugin that I want to have disable itself if it's under HTTP::Daemon
< bda> Check to see where that debug msg is generated?
* bda has no idea, obviously.
< HCoyote> checking $c->engine looks like it returns the current engine
< bda> haha.
<@andyg> oh nice
< bda> Shit, things aren't allowed to be that easy.
< HCoyote> well ... I had to read the perldoc for Catalyst.
< bda> HCoyote: Go back and find the obfuscated method name hidden under six layers of crap.
< HCoyote> (for that ... no idea if it works)
< bda> haha.
< bda> Goddamnit!
< purl> somebody said goddamnit was where the fuck is dorian's martini?
< bda> Sane AND documented!
<@andyg> :)
< HCoyote> now, if it tells you whether you're running on a shitty v6 or a hemi v8 ... I"ll be impressed.
< HCoyote> I've been told I have a knack for finding weird, not-very-obvious shit like that.
< bda> haha.

June 8, 2005 10:33 PM