TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How I Explained REST to My Wife (2004)

115 pointsby bugBunnyabout 12 years ago

13 comments

ebbvabout 12 years ago
I can't stand the "blog post as conversation" format. It's fine if you're quoting a conversation for one or two paragraphs, but for something this long you should do me (the reader) the courtesy of speaking directly to me.<p>Also this is giving way too much credit for the creation of the URL. The format of the URL is not some miracle, genius insight. It is a natural result of network computing, and similar descriptors of how to find a file on a remote system had existed previously for ages.
评论 #5357003 未加载
评论 #5357653 未加载
peshkiraabout 12 years ago
It's a great blog post, but it has been posted numerous times on HN. I don't want to rant or anything, but I think we should start searching before posting. Please correct me, if I am wrong.<p>cheers <a href="http://news.ycombinator.com/item?id=763570" rel="nofollow">http://news.ycombinator.com/item?id=763570</a> <a href="http://news.ycombinator.com/item?id=3396910" rel="nofollow">http://news.ycombinator.com/item?id=3396910</a> <a href="http://news.ycombinator.com/item?id=5186774" rel="nofollow">http://news.ycombinator.com/item?id=5186774</a>
评论 #5356343 未加载
评论 #5356273 未加载
评论 #5356301 未加载
评论 #5356347 未加载
评论 #5356579 未加载
评论 #5356228 未加载
ceralesabout 12 years ago
So Ryan Tomayko's conversions with his wife are akin in tone and style to a language textbook aimed at tweens?
评论 #5356879 未加载
评论 #5356478 未加载
zedrabout 12 years ago
What do you think about the separation of Web sites and Web services (so-called APIs)? Shouldn't the Web site <i>be</i> the Web service, and offer multiple representations of its endpoints?<p>As a trivial example, consider that I have a blog located at the URIL <a href="http://www.example.org/posts/" rel="nofollow">http://www.example.org/posts/</a><p>If I were to offer an API to other developers, I would have two options: 1) serve posts as `application/json` at the URI <a href="http://www.example.org/api/v1/posts" rel="nofollow">http://www.example.org/api/v1/posts</a> ; 2) serve both `text/html` and a `application/json` representations at the same URI <a href="http://www.example.org/posts" rel="nofollow">http://www.example.org/posts</a> , handling the desired mime-type and API version in the 'Accept' field of the HTTP request.<p>Which approach is better?
dgreenspabout 12 years ago
Yes, and we also have XML, the Academically Correct and proven-in-the-field way to represent all entities.<p>I get the "URLs are nouns" metaphor, but I don't think it needs any additional promotion or particularly favors HTTP over whatever else might emerge.
评论 #5358833 未加载
hobbyistabout 12 years ago
Correct me if I am wrong here. So, instead of the eloquent method of using GET, POST and PUT on resources, the current practice is about the programmer writing custom parsers to get the information they want and then use them accordingly.
siamoreabout 12 years ago
Isn't representation of resources what the semantic web is supposed to be about? if I wanted to make someone understand the semantic web I would say something like this,<p>ontologies are data with corresponding metadata about everything on a domain or site.<p>These ontologies allow the data to be parsed automatically, i.e sites like amazon could just make their data available as ontologies and third party sites could "read through the sites for us". These third party sites serve as a portal from where we could ask for what we want and they would in turn look through the sites available (eBay, amazon etc) using the ontologies and get the best deal for us.
UNIXgodabout 12 years ago
Yes it's a classic. Supplemental to RFC 2616.
keefeabout 12 years ago
most of explaining REST to my wife was linking her fielding's thesis. Pretty happy with my life... :]
rikkusabout 12 years ago
He uses four metaphors to help explain this:<p>1. Cleaning 2. A coffee table 3. Shopping 4. A school<p>So was he explaining this to his wife in the 1970s? Because REST over HTTP didn't even exist until the 90s.
Aardwolfabout 12 years ago
&#62; Wife: You mean "http" like the beginning of what I type into the browser?<p>What browser does she use? It wasn't required to type that anymore for ages already :)
评论 #5356297 未加载
评论 #5356269 未加载
评论 #5356668 未加载
评论 #5356886 未加载
shubhamjainabout 12 years ago
I don't wish to read essays but i guess it is just a way to transmitt information on web, get and post methods, mainly.
评论 #5356827 未加载
WayneDBabout 12 years ago
What a bunch of hogwash. Everything does not fit into the request/response model of HTTP and the Internet is certainly the web.
评论 #5356845 未加载
评论 #5356652 未加载