Re: Link Relations
Steve Klabnik <[email protected]> Wed, 13 Nov 2013 14:33:06 +0100
| Newsgroups | gmane.comp.web.services.rest |
|---|---|
| Message-ID | <[email protected]> |
On 11/11/2013 12:04 AM, Charles Reese wrote: > There are so many *bad* examples, it's hard to find good ones from which > to learn. An easy way to get started thinking about how to tackle these problems is WWWWWD? (What would the world wide web do?) I would have come to the same conclusion as Mike, but my initial thought process would have been like this: What websites do I use that tackle this kind of problem? In my brain, I go to https://www.beeminder.com/ . I use this to keep track of my DuoLingo scores, to make sure I'm keeping up with my German. So, if Beeminder gets out of whack, there's a little button I can press (read: hypermedia control) that says "re-sync data." That initiates a background process to re-fetch the data and make it match. It redirects back to the dashboard page, with a little "now syncing, check back later" and a graphic to indicate that the synching process is taking place. Said control is disabled until the process is done. In addition, this process runs once a day, even if I don't activate the control. Anyway, this isn't perfect in all cases, but I often find it a good starting point when thinking about how to model a particular kind of state machine.
signature.asc
(application/pgp-signature, 900 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJSg3+SAAoJEPJtzZPTU7AxS3wP/idHe6rQVA3RIOpJ4f55P0gg tBEbJnTNrTzEQm2Gkh2Lg/lmjwabJK06WMA5l7NAtF9OZhme7mw1QQzKzN6Q/AF5 jGZosT2YTnbfdpP8eOrWggv6XNF9lGIxrkCyPtxxDYiWgkcdScy3aOJd7/TaP07C exyG2hnnjY92D5nxReLv1Is7oJDHWw7bbP00nioPybWnSluVQnIT+9eqOgWoTC6N 8fA1DDC5ALVULO3J4vMmeNk0dvgrpdIb792625wuxnfF8Kz+flu3Ce8rFNU8jKfY 6N9fxzYI6eEV+wHfm5Rfqs1O34IHRdJt8CXsA9gx8inKaxngQfTq1oVjBTCPdmzB SpYwel1qaFPjp45o9woJuXxXbH7fRI85DTlY44KbhIK92tmJuRH9N/f4waEktE5S c42/BeapM4tfFFgQ9u0eFO1IJEdx/N9CZs6qa4jSjJQFgJwePNZU2pUIpTbLtQwE 0TJdojrFYHriNWSfX00F2y/dFoM/XTlOHruNeNn8ncSVRE1u+79rYjSbMp2CwuX7 gXNFnqdcod46Ibf4VsNATtI852ZqaWDuaXKsooE/m5YKcpP7OUM9oCk7lWKupDgZ qGLGvagoNA4jHPu503yjeK++6SNnNEn1ETNSr1p4eSm1IwXTVXLqIFDQ5TAQ1afa uPZr/eSEB7isN91R2+uL =kl3y -----END PGP SIGNATURE-----