On Tue, 2 Jan 2007, Timothy Appnel wrote:

I had been giving better REST support in CGI::Application some thought
lately. David Heinemeier Hansson (The Larry Wall of Ruby on Rails) has
been saying about how impressed he is with REST, and particularly Atom
Publishing Protocol,

Incidently, my interest in REST was actually for implementing the Atom Publishing Protocol.

After review this module, I have to agree with Michael. Functionality
for supporting RESTful applications should be in Dispatch though a
separate utility class for automating some of the standard application
status returns may be warranted.


As I said to him when we had our IRC conversation that day, the main bit that is missing is dispatch based on MIME types.

Do you think I should not continue with my module? Although it is not as featureful as C::A::Dispatch it is more lightweight and the features are "good enough" for many applications I should think. Also mine is a plugin while C::A::Dispatch can only be used as a base class right?

I like the way Catalyst::Action::REST implements its REST
functionality personally.

You mean with attributes? Rhesa suggested this also. My only concern is that it would slow things down a bit. I am going to try and implement this just to see if the performance hit is noticable or not.

In my mind its much clearer as it applies
convention over configuration. Its also less of a departure from how
things work now. Doing it this way wouldn't be too difficult in
Dispatch either. There is one area I'm unsure of though -- should the
mixing of REST-enabled and "standard" application modules be permitted
by Dispatch or should a developer be forced to choose one direction or
another?


Personally, what I like about CGI::Application is that it doesn't impose much in the way of convention. If I wanted that I might as well be using Catalyst.

--
Jaldhar H. Vyas <[EMAIL PROTECTED]>

---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/[email protected]/
             http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to