3 ms·
I don't see how truncating lines can be "correct" behavior. Be liberal in what you accept and conservative in what you send.
by kragen 17y ago
I don't see how truncating lines can be "correct" behavior. Be liberal in what you accept and conservative in what you send.
- smanek 17y agoI know that's in the RFCs, but that's the kind of thinking that caused the web standards nightmare everyone has to deal with today. If you accept incorrect input, then people will expect you to continue to do so into eternity - and if you have significant market share (facebook, IE, etc) you've just created a defacto (ill-conceived, poorly documented) standard that every other implementor now has to try to reverse engineer and try conform to.
- kragen 17y agoThat's also the kind of thinking that made the internet and the Web workable systems, while Hyper-G, OSI, SNA, DECNET, Xanadu, and so on ended up in the dustbin of history. Yeah, it's too bad that at some point someone has to build quirksmode.org and write the HTML5 standard, but that's better than not having widely-used web standards to deal with in the first place.
- wmf 17y agoThe alternative to Postel's Law is usually data loss. When your mail server receives one of these malformed emails from Facebook, what should it do? Delete it? Bounce it? (Facebook will just delete the bounce.) Print it out and mail it to Zuckerberg COD?
- smanek 17y agoProbably alert the user that it can't be parsed (like browsers currently do for XHTML). Maybe do something like firefox does when it encounters a self signed SSL cert - allow the user to accept it - but make that choice explicit and painful. If most parsers actually did this, I doubt people would carelessly violate standards anymore. Of course, it's a bit of a prisoners dilemma to get everyone to actually do this. The one guy who doesn't will likely become immensely more popular than his competitors ... Oh well, it's nice to dream.
- diN0bot 17y agoit's that principle that is partly (largely?) responsible for the god-awful state of website standards.
- kragen 17y agoMark Pilgrim wrote an excellent rebuttal in 2004, showing why you are completely, entirely, 100% wrong on this: http://diveintomark.org/archives/2004/01/14/thought_experiment http://diveintomark.org/archives/2004/01/14/thought_experime...
- nailer 17y agoI agree with your point, but am modding you down as the tone of your message is somewhat aggressive. Perhaps you should read the HN posting guidelines?
- kragen 17y agoYes, of course you are correct. (Coming on the same day as a bunch of eulogies for Erik Naggum on HN, this is kind of funny, although I'm sure you didn't mean it that way.) Unfortunately it is too late for me to edit my message.
- prodigal_erik 17y agoThat boils down to "what if your admin tool refuses to make any state changes because your current state is invalid?" This is inherently bad design, and doesn't justify anything other than fixing the admin tool.
- mquander 17y agoI disagree. Even if your admin tool worked, bad content could still make its way onto your site as long as your site was partially user-contributed. If user clients complained about bad content, you'd have to be on perpetual cleanup duty to make them happy, which sounds terribly tedious.
- ubernostrum 17y agoIt is often forgotten that Postel's Law has two parts; it does not simply say "be liberal in what you accept".
- kragen 17y agoYes, of course I think Facebook should fix their mail too, but other people seemed to have already made that point well enough.