3 ms·
I’d just like to interject for a moment. What you’re referring to as REST, is in fact, JSON/RPC, or as I’ve recently taken to calling it, REST-less. JSON is not
by recursivedoubts 3y ago
I’d just like to interject for a moment. What you’re referring to as REST, is in fact, JSON/RPC, or as I’ve recently taken to calling it, REST-less. JSON is not a hypermedia unto itself, but rather a plain data format made useful by out of band information as defined by swagger documentation or similar.
Many computer users work with a canonical version of REST every day, without realizing it. Through a peculiar turn of events, the version of REST which is widely used today is often called “The Web”, and many of its users are not aware that it is basically the REST-ful architecture, defined by Roy Fielding.
There really is a REST, and these people are using it, but it is just a part of The Web they use. REST is the network architecture: hypermedia encodes the state of resources for hypermedia clients. JSON is an essential part of Single Page Applications, but useless by itself; it can only function in the context of a complete API specification. JSON is normally used in combination with SPA libraries: the whole system is basically RPC with JSON added, or JSON/RPC. All these so-called “REST-ful” APIs are really JSON/RPC.
respectfully,
https://htmx.org/essays/#hypermedia-and-rest https://htmx.org/essays/#hypermedia-and-rest
- cxr 3y agoI'm on your side, but every time you say "a hypermedia" it kills me.
- recursivedoubts 3y agosorry, an hypermedia
- cxr 3y agoThat's not the problem. It's similar to the effect of a garden path sentence: when I encounter the word "a" and then "hypermedia", I'm always expecting something to follow (e.g. "a hypermedia system", "a hypermedia format", etc). Encountering "hypermedia" as a singular noun makes me wince. (The effect isn't ameliorated by modifiers, e.g. "a natural hypermedia".)
- recursivedoubts 3y agooh, sorry! an hypermedium
- plugin-baby 3y agoSimilarly if I ever heard someone say _an_ hotel...
- pmontra 3y agoI'm not a native English speaker so, honest question: isn't h a consonant with its own distinct sound, so a instead of an?
- dimator 3y agoIt depends on the sound of the h. "A house" vs "an honor"
- dragonwriter 3y ago> isn't h a consonant with its own distinct sound Usually, including in “hypermedia”, but “hypermedia” is either an adjective or a mass noun, not a countable noun of which you can have a single instance. “a hypermedia... ” looks like you are using it as an adjective to modify a countable noun, and when there is no noun looks like you forgot the noun; “JSON is not a hypermedia unto itself...” should probably be something “JSON isn’t hypermedia unto itself... ” (I’d actually prefer “JSON, on its own, isn’t hypermedia”, but that gets behind the issue with the use of the indefinite article.
- recursivedoubts 3y agoWe take english grammar from the corrupt! The rich! The oppressors of generations who have kept you down with myths of uncountable nouns... and we give it back to you... the people.