Better HN
topnewbestaskshowjobs
Log inSign up

emperorpenguin

5 karma · joined Sep 19, 2011 (15y ago) · 6 submissions

Submissions

comment 15y ago · link · parent

Ok - fair enough. SOAP sucks.

But we've known to use GET for operations with no side-effects, and POST for operations that change stuff for many years now, without needing to attach a name to it, throw PUT/DELETE into the mix, or CRUDdifying every operation.

It's the verb part that I really don't get. That, and the general level of excitement surrounding REST. Why are there so damn many articles like this one?

comment 15y ago · link · parent

> Right, but this sounds like blaming a nail

Well, more accurately, I'm blaming people who think that nails are awesome and the only way to do things - and in fact we should structure all our applications by making use of a relatively obscure aspect of how nails work :)

comment 15y ago · link · parent

Don't confuse ubiquity with quality. Witness: VHS, Paris Hilton.

comment 15y ago · link · parent

Ok, I'm being somewhat unfair. HTTP is an adequate (although overly-complex) protocol for simple document retrieval. It is unfortunate, (in my opinion), that we've used it in a whole ton of ways for which it was never intended.

Have you considered some of the hacks that we have to use to make HTTP do what we want? Comet/longpoll? JSONP? Have you looked at the bajillion different ways in which browsers and proxies fail to implement caching in a consistent manner? How browsers will only allow a limited number of concurrent connections to a particular host? Have you looked at a x-www-form-urlencoded post? Do you think that's a good way to send data around?

Anyway, I'm not really after a big discussion of HTTP's merits - my apologies for excessive opinionation. I am, however, interested in why so many people think REST is a magic bullet.

comment 15y ago · link · parent

But how does REST improve scalability, caching, retrys, etc... over ANY other HTTP-request based scheme?

comment 15y ago · link · parent

Can somebody explain in one sentence why is REST a good thing? What does it bring to the party? Why is forcing every RPC call that my application makes into CRUDdable objects necessarily a good thing?

Frankly, I can't believe the amount of near-religious attention it's being given. You're taking an obscure aspect of HTTP (already a mind-bendingly terrible protocol in its own right) - verbs - and making it the cornerstone of your application framework.