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

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.
  • You don't have to like CGIP, and that's fine. This sounds like it might be in response to my last journal post. I wasn't trying to push CGIP on anyone, and really did mean it when I said that anyone who tells you what to use before they know your problem isn't worth listening to. I've recommended Catalyst to plenty of our clients, and usually do so first, saying "If this doesn't work for you, then we'll talk about CGIP". It certainly isn't something I recommend people start with if something else works bett
    • It started as a reply to your post, yes. Then I realised it was beside the issue. Anyway, it is why I wouldn’t pick CGIP again.

      It’s not like URIs are magic.

      They’re not, but CGIP scatters the responsibility for dispatch across all of your classes by way of the respond method, and it will not invoke a method other than respond in the course of dispatch, nor does it provide a built-in mechanism of passing parameters to it. So you have to rig up the entire machinery to parse the URI and route to the right method invoked with the right parameters, and integrate it with CGIP’s dispatch API.

      You can do URI-based dispatch in CGIP in spite of CGIP.

      It sounds like you don’t like that you had to make the decisions and do the work to make CGIP do exactly what you wanted.

      Catalyst makes me take a lot of decisions. If that was what I had to do, I would like CGIP. But I didn’t make CGIP do what I want. I wrote everything of interest myself. The presence of CGIP was almost incidental.

      In the end I inlined CGIP and trimmed it to the bits I actually used, discarding over ¾ of it in the process. Essentially, I now have an ad hoc, informally-specified, rigid implementation of half of Catalyst, to borrow Greenspun’s turn of phrase.

      I’d like a framework that provides infrastructure so I don’t have to.

      • I'm not sure what you were doing with CGIP and URL dispatch, but I never had to scatter them across anything. It sounds like you were doing something the hard way.