Mark Ramm wrote: > This is just my opinion... > > Rest is particularly powerful when you think of your application as a > service, and the URL schema as the API that you are exposing to the > world. If you don't care that a third party be able to construct > links to your content programatically, and you aren't exposing > anything as a web service, then pretty URL's are the main benefit. > > But remember REST is about more than URL structure, you also have to > agree to preserve the "natural" statelessness of the web in your > application. So cookies, and Session variables, which change what > you see at a given URL aren't allowed. > > Thinking of URL's as an API, and removing session state makes it > easier to use your application in different ways than you origonally > intended. > > But for a simple web app, which isn't going to be exposed as a service > anywhere, REST may not always be a high priority. > > The answer to the question "is technique X worth it?" is pretty much > always: "Well, that depends on what you're trying to do..." REST is > the same. Some applications need it, some don't. But if you are > exposing a web service REST+JSON is a heck of a lot easier to deal > with than SOAP! >
I could not agree more. This would actually be a good summary of one the CherryPy book chapter I wrote. :) - Sylvain --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---

