3 ms·
In terms of implementation, it's interesting that they chose ugly URLs which encode everything /book/rt/a1c1i1/sfo_bos/20140524_20140528 Note the a1c1i1: that
by Myrmornis 12y ago
In terms of implementation, it's interesting that they chose ugly URLs which encode everything
/book/rt/a1c1i1/sfo_bos/20140524_20140528
Note the a1c1i1: that's "1 Adult 1 Child 1 Infant" and it changes as you adjust the widgets (without a page refresh).
Also, minor detail, but I'm interested to see that they use PUT as well as POST to update the server with the selections. So that's following modern "REST" guidelines (use verbs properly) but the URLs are anything but!
EDIT: I put "REST" in quotes to refer vaguely to modern API practices. I know REST is strictly something else, please let's not talk about that it's really boring.
- andrewfong 12y agoMaybe they encode everything in the URL to allow the back button to effectively function as an undo button. EDIT: I take that back. Apparently, the back button does not undo something like adding a child to your booking.
- alister 12y agoIt's gotten to the point that whenever I want to post a URL in an article or email a URL to someone, I need to sanitize it. I don't know what information I might be leaking. If the URL looks like it might have some hidden information, what I usually do nowadays is to navigate to that location from a separate browser (in which I have no passwords, logins, cookies, history), and cut and paste the URL from there.
- Myrmornis 12y ago> what I usually do nowadays is to navigate to that location from a separate browser (in which I have no passwords, logins, cookies, history) incognito/porn mode should work for that too