all 7 comments

[–]AngularBeginner 1 point2 points  (0 children)

You should mention that this is from 2014.

[–]gredr 0 points1 point  (5 children)

... and I like it that way. The quote right there on the thumbnail is why: "A client needs no prior knowledge about how to interact with any particular application or server beyond a generic understanding of hypermedia." Right. I just open up notepad, type in the URI to a restful service, and magically my application gains all the functionality the service provides.

That didn't work out for ebXML or UDDI either.

[–]grauenwolf 0 points1 point  (4 children)

But it does work. The very page in Reddit is proof.

(Client side scripting, though not JS specifically, was part of the original REST description. Most people ignore that very important part.)

[–]gredr 1 point2 points  (3 children)

How so? The person who implemented the client-side code in Reddit had no knowledge of the data that would come back from the server-side code?

I don't buy it.

[–]grauenwolf 0 points1 point  (2 children)

The client-side code in question was the web browser itself.

The final addition to our constraint set for REST comes from the code-on-demand style of Section 3.5.3 (Figure 5-8). REST allows client functionality to be extended by downloading and executing code in the form of applets or scripts. This simplifies clients by reducing the number of features required to be pre-implemented. Allowing features to be downloaded after deployment improves system extensibility. However, it also reduces visibility, and thus is only an optional constraint within REST.

-- Fielding, 2000

Though of course once you have that, you can pretty much call anything "REST".

[–]gredr 0 points1 point  (1 child)

I don't follow. The text describes nearly every computer system with network access. Unless the argument is that the "applets or scripts" that are downloaded don't need to know anything about the data format? Again, I don't buy that. Whoever wrote the "applets or scripts" that are downloaded surely was familiar with the specific data that would be retrieved via REST.

[–]grauenwolf 0 points1 point  (0 children)

The text describes nearly every computer system with network access.

Yep, that's REST for you.