Essays:

Userland -
-



Sam Ruby
< It's just data >

Updated: 10/1/2002; 3:52:04 PM.

Monday, September 02, 2002

Daypop is busted.


  6:26:14 PM   Comment 

I agree with DJ's point #1.  I'll fess up: that statement was made for dramatic effect.

Re: point #2... let's review the definition of idempotentThe methods GET, HEAD, PUT and DELETE share this property.  Yes, DELETE is idempotent.

As for #3... let's change the example slightly... for every query, your account balance is debited ten cents.  In other words, a scenario where one definitely incurs an obligation in return for the response.

Note: my real goal with bringing up this discussion was not to rehash RPC vs REST, but to establish that this is not a simple black or white issue.

Meanwhile, for those who haven't seen it, there is a fascinating discussion going on in the comments to my original blog entry.


  6:01:31 PM   Comment 

I've documented my musings on the history and future evolution of RSS.
  5:25:19 PM   Comment 

Phil Wainewright: We cannot organize without shared definitions and classifications; but we cannot create without challenging preconceived ideas. This is the paradox at the heart of innovation (and indeed the flaw in any vision of canonical business semantics).
  1:40:01 PM   Comment 

Mark Baker is another blogger I would read with greater frequency if he had an RSS feed.  Here he identifies himself as an extremist.  Mark, I have a question for you.

Perhaps the most cherished axiom of the REST architecture is that GET must not have side effects.  This is even codified in the standard.  Now a Google query is darn near the canonical example of a  HTTP GET, right?  To do such a query  via a POST would be, well, a Gaffe of the first order, no?  Of such a magnitude that the only appropriate course of action is to gather together a fellowship of like-minded Hobbits, Dwarves, Elves and men and go on a quest to educate the world.

Now it turns out that the Google API has a limit of a 1,000 queries per day.  This means that the 1,001st query will not have the same result as the 1,000th query.  The query itself has a (GASP!) side effect.  It is most decidedly not idempotent.  So what do you do?  Call back the Hobbits and recode to use POST, or do you make the pragmatic decision to slightly bend the rules a bit?

Inquiring minds want to know.

P.S.  Thanks go out to Nelson Minar for bringing this question to my attention.


  12:09:06 PM   Comment 





September 2002
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30          
Aug   Oct

Click to see the XML version of this web page.


Related: Help link
Scripting News
Simon Fell > Its just code
John Robb's Radio Weblog
Peter Drayton's Radio Weblog
Bitworking
rebelutionary
Don Box's Spoutlet
Sjoerd Visscher's weblog - w3future.com
Bright Eyed Mister Zen
The .NET Guy

Click here to visit the Radio UserLand website.

[Macro error: Can't evaluate the expression because the name "channeltitle" hasn't been defined.]


Last update: 1/25/2002; 7:23:12 AM

© Copyright 2002 Sam Ruby

-