I cringe a little bit whenever someone tries to present caching as simple or straightforward.
Re:When REST isn't Good Enough
by drivebyacct2 on Tuesday November 20, 2012 @02:44PM
(#4810907)
I don't see that anywhere in the post. All I saw was "GET"s shouldn't modify state and should be cacheable. That seems perfectly in line with the spec.
The only problem I have with your comment is that REST is not specified, it's a style:
http://en.wikipedia.org/wiki/Representational_state_transfer
GET being cacheable/idempotent is part of the HTTP spec, and has nothing to do with REST: http://www.w3.org/Protocols/rfc2616/rfc2616-sec13.html#sec13...
Re:When REST isn't Good Enough
by drivebyacct2 on Tuesday November 20, 2012 @06:14PM
(#4811898)
I meant the HTTP spec which is where GETs specified.
You can most definitely write a GET request that contains side-effects, but that's because you're doing it wrong (tm).
Imagine if your function names had data in the call path MyCourse.32423.Delete(); that doesn't look very good does it? 32423 would look alot better inside Delete().
That's not data, that's an object. "MyCourse.32423" is the actual resource. It would actually look something more like:
MyCourse32423.Delete();
Which seems pretty reasonable to me if we're trying to map this into programming language semantics (which I'm not even sure we should be doing).