by javascriptlol · 14y ago · 0 comments
In fact, REST specifically lets systems grow organically since each object never assumes knowledge about either state or state transitions, all knowledge is contingent and empirically discovered.
Okay. I'll let Alan Kay argue the exact same point then.
http://video.google.com/videoplay?docid=-2950949730059754521
The whole video is worth watching but the relevant part starts at 43:00. This video was made three years before Fielding submitted his dissertation.
(note: this isn't an appeal to authority fallacy since he's making an actual argument.)
[1] The Smalltalk variety of OOP which is about encapsulation, message passing, and extreme late binding.
A "well documented protocol" (binary or not) by definition is interoperable within a certain context. The question is, how big is the scope of that context?
The point of the Web protocols is to provide a framework for evolving bits of agreement - not "big design up front", except for the essential bits that have proven themselves, or are essential to bootstrap communication. HTTP, MIME, and URI are those essential bits of agreement at the moment. Witness how HTML isn't as essential as it used to be, given the growth of JSON APIs and mobile native apps.
As for REST, I'm sure it's nice for some things. However, if you think interoperability is going to magically spring out of it you're ignoring the lessons of XML, which that having an (ostensibly) human-understandable format is not going to magically allow machines to become more interoperable. All it will do is allow people to make bad guesses about the meaning of documents instead of reading the documentation.
Similarly, to suggest that HTTP hasn't proven itself (compared to what?) or that "innovations" of the web existed decades ago (really!?) is nonsensical to me. It's the most widely deployed application protocol on Earth. It handles billions of dollars of transactions.
You claim the web is unreliable. I think that's a layer error. The issue is that networks are unreliable. That's not something one can paper over.
>Similarly, to suggest that HTTP hasn't proven itself (compared to what?)
Compared to writing your own protocol that is appropriate for your application. The fact that people think HTTP is good enough has meant the browser has only recently acquired the ability to have a proper duplex channel without polling. Sorry, but that's just pathetic.
>or that "innovations" of the web existed decades ago (really!?) is nonsensical to me.
Name one thing that can't be constructed more efficiently and flexibly on the desktop, aside from web links.
>It's the most widely deployed application protocol on Earth. It handles billions of dollars of transactions.
So what? Because it's popular that means it's good? I used to be dismissed because as long as 7 years ago I was telling people we needed sockets and proper client/server in the browser. Now I'm getting the last laugh as I watch the browser vendors take decades to slowly do this stuff. At each step, it is labeled "innovative" and interesting and hyped up beyond all comprehension. The progression of this trend is retarded by the insistence of inventing stupid premature optimisations like caching as a basic architectural feature.
>You claim the web is unreliable. I think that's a layer error. The issue is that networks are unreliable. That's not something one can paper over.
Then you're ignorant of the potential of low-level protocol design. Sorry, but I absolutely can tailor my network protocol to my particular application. The web takes the position that everyone should use HTTP. It is a terrible protocol for many things. How are you going to design your soft real-time applications using HTTP? The answer is you can't, because it is impossible to get the right guarantees. HTTP has only "proven itself" in the same sense that Windows has; it was good enough at the time, so now it's blown up and everyone's using it. So what? I want more.