3 ms·
I'm always amazed and dismayed that this heap of junk has become the foundation of such a massive set of activities. I mean, who thought it was a good idea to
by mikeash 13y ago
I'm always amazed and dismayed that this heap of junk has become the foundation of such a massive set of activities.
I mean, who thought it was a good idea to have different escaping for different parts of a URL? That's like having a car that uses a lever to turn right and a foot pedal to turn left.
Of course, the answer is: nobody. URLs weren't designed, they grew organically. The result is the ubiquitous mess we have now.
It does work. The organic, evolving web has survived and thrived while sanely-designed standards have withered and died. Maybe it's ultimately the best way to do things.
But it still bugs me that I have to deal with such weird, awful nonsense when I need to do something related to the web. TCP/IP, while certainly not lacking in quirks, is still a million times better. It's sad that we couldn't end up with something a little more consistent at the higher levels.
- MichaelGG 13y agoThere seems to be a drive in some of the core standards to allow as flexible "human" encoding as possible. Instead of writing a tight-as-possible encoding, it's like it becomes a game to see how complicated yet still unambiguous they can make syntax. HTTP and SIP, for instance, have ridiculous parsing rules and tons of edge cases. The SIP authors even put together a "torture test" RFC where they take glee in making the most insane messages that still parse. And when they don't parse, they suggest the implementation infer the meaning. Seriously. HTTP and SIP allow newlines in headers that get consumed in parsing, so you can manually word-wrap lines. They allow comments in HTTP messages. SIP (HTTP too?) allows headers _in the URL_. When a non-committee (TCPIP) or non-academic (SPDY) entity does a spec, they tend to remove a lot of this cruft and realise that human-readability comes second (unlike in programming languages).
- tel 13y agoIn my reading of the RFCs, HTTP doesn't allow headers in the URI. But it does demand that you accept nest comments in header values. Only. These comments appear nowhere else.
- mikeash 13y agoThat's an interesting thought. There is definite advantage in having a protocol be human-readable and human-writable. However, there's a vast gulf between a protocol that you can write if you have the spec at hand and take your time, and a protocol that you can comfortably write by hand routinely, like a programming language. The latter strikes me as a really bad idea, one responsible for much of this craziness.