CodeBetter.Com
CodeBetter.Com
RSS 2.0 via Feedburner
           Do you Twitter? Follow us @CodeBetter

Darrell Norton's Blog [MVP]

Fill in description here...

Something to code by

 "There are no exceptions to Postel's Law.  Anyone who tries to tell you differently is probably a client-side developer who wants the entire world to change so that their life might be 0.00001% easier.  The world doesn't work that way."  [via Dive Into Mark]

Postel's Law is originally stated in RFC 793 as "be conservative in what you do, be liberal in what you accept from others".



Comments

Darrell said:

The author takes the position that there are no exceptions. Postel's law has held up for the past 22+ years (since 1981), so what is different about now?

However, apparently there are XML enthusiasts that don't think Postel's Law applies to XML. See the article for full details.
# February 8, 2004 3:27 PM

JosephCooney said:

I've kind of been following the "draconian" vs. "tolerant" debate which has been discussed
http://www.25hoursaday.com/weblog/PermaLink.aspx?guid=23d8b5ec-e0c8-4a61-b317-7bca1d8d74f3
I think I am a draconian.

Should my ASP.NET pages be liberal in what they accept from others? The thinking these days seems to be more "determine what valid input looks like and allow that, disallow everything else", which seems to fly in the face of Postel's Law.

Maybe Postel's Law isn't really a law at all, or maybe I just have the wrong end of the stick.
# February 8, 2004 4:36 PM

Darrell said:

I guess it depends on your audience. If your audience is other corporate developers for B2B web services, then draconian is probably a good idea. However, if your audience is normal people using a computer, they just want to read feeds. There is nothing mission critical about it, and you know that some feeds will not be strictly correct XML. At that time I would fall on the side of the tolerant.
# February 9, 2004 2:22 AM

JosephCooney said:

So there are exceptions to Postel's "Law"? How much of a "Law" is it then? OK - I'll stop being pedantic now.
# February 9, 2004 11:10 AM
Check out Devlicio.us!

Our Sponsors

Free Tech Publications