Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / General DB Topics / DB Theory / June 2008

Tip: Looking for answers? Try searching our database.

Postel's law

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David BL - 23 May 2008 06:28 GMT
Have you heard of Postel's Law?

   "Be liberal in what you accept, and conservative in what you
send."

I can imagine it being applied to many things.  Eg file formats, APIs,
compilers, databases ...

I think it generally leads to unnecessary complexity and sweep errors
under the carpet.

Comments?
Marshall - 23 May 2008 18:18 GMT
> Have you heard of Postel's Law?
>
[quoted text clipped - 5 lines]
> I think it generally leads to unnecessary complexity and sweep errors
> under the carpet.

Postel's law makes enormous intuitive sense. Its benefits are
immediately obvious. There's just the one teeny problem that it
leads to widespread ruination.

Many related arguments, and in some cases Postel's Law in
particular, have been used to justify various wonky behaviors
in Haphazard Text Markup Language parsers. The argument
goes something along the line of, any file you can get anything
out of, you ought to. And also that this enables shitty amateurs
to write code that writes files. As I said: ruination. Blurring the
line between what is accepted and what is malformed leads
to problematic questions about the semantics of only-slightly-
broken files. If it's not part of the standard, then anyone is
free to interpret the input however they want. This defeats the
purpose of having a standard in the first place.

The counter argument for me has always been JPEG. JPEG
may actually be such a success *because* it's so technically
difficult. You don't get shitty amateurs writing JPEG writers.
They just use a library that already works, which was written
by an actual expert. (Which is what the "E" in "JPEG" stands
for anyway.) And JPEG is an enormously successful file
format; there are probably more JPEG files on the web than
HTML files.

Marshall
paul c - 23 May 2008 18:26 GMT
...
> The counter argument for me has always been JPEG. JPEG
> may actually be such a success *because* it's so technically
[quoted text clipped - 4 lines]
> format; there are probably more JPEG files on the web than
> HTML files.

Let's hear it for ETML!
Cimode - 23 May 2008 21:38 GMT
> > Have you heard of Postel's Law?
>
> > "Be liberal in what you accept, and conservative in what you send."

> > I can imagine it being applied to many things.  Eg file formats, APIs,
> > compilers, databases ...
[quoted text clipped - 28 lines]
>
> Marshall
<< "Be liberal in what you accept, and conservative in what you
send.">>
If one is talking about high school love letters perhaps the rule
applies.  That application may even get one a better chance to get
laid *before* your prom night. However, computing of exchange formats
and general computing history tells a different tale.  The greatest
caution is to be applied about human ability to create tempting
shortcuts and create areas of technical relevance where there is in
fact nothing but truth vacum.

I have realized that human computing culture has strong tolerance with
overhead and unefficiency when it does not perceive its side effects.
HTML is probably the best example to date.  HTML was not a language
designed with the objective of efficiency nor elegance but a very
limited purpose to be a text format wrapper.

Its hierarchical inspired structure added with the anarchic and
continuous stacking of resource pointers embodied by its keywords made
it an ideal candidate for being called the first universally accepted
class in an OO sense (you know about polymorphism, thinking of href
and img as flexible properties in an OO jargon).   Nevertheless, the
physical size representing its overhead,  its *instantiation* as a
page was small enough to not have the side effect of its usage being
perceived by its users as unacceptable.  Such acceptance comes in fact
the carrying medium of the technology, namely network, had the
potential of absorbing its side effects and make user perceive that
the impact of its size as minimal.  In fact, one can reasonably assume
had the topology of the network that first accepted been unsufficient
to limit its side effects, HTML would have disappeared as many
languages did because its side effects would not have been acceptable
to its users.  Not as much could be said of XML or other EDI formats
that all have in common the fact that their side effects are actually
perceivable by their users.  In the case of these late ones, overhead
is perceived by users because the physical conditions are not
sufficient to make them disappear and accentuate them.

Another way to say this is that HTML is the exception that confirms a
rule that could be phrased as *Unless you have your own private postal
service, just send the letters in enveloppes that are more likely to
be processed faster and better by the triage machines*...Qualifying
the application of this rule based on practicality and common sense as
being *conservative* or *liberal* is nothing more than an
anthropomorphic projection over a simple problem.  A nice example
indeed.

My two cents over EDI...
David BL - 24 May 2008 02:14 GMT
> > Have you heard of Postel's Law?
>
[quoted text clipped - 16 lines]
> out of, you ought to. And also that this enables shitty amateurs
> to write code that writes files.

Developers that assume their end users are shitty amateurs get what
they ask for.

> This defeats the purpose of having a standard in the first place.

This is my biggest problem with Postel's law.

> The counter argument for me has always been JPEG. JPEG
> may actually be such a success *because* it's so technically
[quoted text clipped - 4 lines]
> format; there are probably more JPEG files on the web than
> HTML files.

It's amazing how XML on the one hand is promoted as a text format that
can be freely edited in your favourite text editor, and on the other
hand its verboseness is a godsend because it puts people off actually
doing so.
Gene Wirchenko - 24 May 2008 06:21 GMT
>Have you heard of Postel's Law?
>
[quoted text clipped - 8 lines]
>
>Comments?

    Joel Spolsky said it well:
         http://www.joelonsoftware.com/items/2008/03/17.html

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
    I have preferences.
    You have biases.
    He/She has prejudices.
Ed Prochak - 28 May 2008 13:17 GMT
> Have you heard of Postel's Law?
>
[quoted text clipped - 8 lines]
>
> Comments?

I always understood this in the context of standards (ad hoc and
otherwise) to mean essentially backward compatibility. That's because,
in communications protocols which is the context when I first learned
this, newer standards tend to be more restrictive, more detailed. So a
program that uses the newer standard should also, as much as possible,
accept old protocols. But I never took it to mean to accept anything.
At some point some older features need to die off.  TV broadcast
standards are a good example.

The discussion about HTML is interesting, but I see problems with HTML
as less of an issue as the compatibility problem of all the other
browser issues with JAVA, Java script, and uncounted plug-ins. As
broken as it is, HTML still mostly works.

 Ed
Marshall - 28 May 2008 14:55 GMT
> > Have you heard of Postel's Law?
>
[quoted text clipped - 11 lines]
> I always understood this in the context of standards (ad hoc and
> otherwise) to mean essentially backward compatibility.

Well, no, not really. Postel's law is applicable to protocols
that have only a single version.

> The discussion about HTML is interesting, but I see problems with HTML
> as less of an issue as the compatibility problem of all the other
> browser issues with JAVA, Java script, and uncounted plug-ins. As
> broken as it is, HTML still mostly works.

I think what we're talking about here, though, is the difference
between "mostly works" and "works." Did you read the link
Gene supplied?

On May 23, 10:21 pm, Gene Wirchenko <ge...@ocis.net> wrote:

>      Joel Spolsky said it well:
>          http://www.joelonsoftware.com/items/2008/03/17.html

Marshall
Ed Prochak - 29 May 2008 12:33 GMT
> > > Have you heard of Postel's Law?
>
[quoted text clipped - 23 lines]
> between "mostly works" and "works." Did you read the link
> Gene supplied?

I did. I just thought the discussion was too limited to HTML.
Especially since this is a group on database theory, not document
format theory.

> On May 23, 10:21 pm, Gene Wirchenko <ge...@ocis.net> wrote:
> >      Joel Spolsky said it well:
> >          http://www.joelonsoftware.com/items/2008/03/17.html

Good article.
Should we conclude this was a result of the law of unintended
consequences?
Or is HTML development an example of misapplying a rule (Postel's
Law)?
Something for comp.risks?

 Ed
Gene Wirchenko - 29 May 2008 16:32 GMT
[snip]

>> On May 23, 10:21 pm, Gene Wirchenko <ge...@ocis.net> wrote:
>> >      Joel Spolsky said it well:
>> >          http://www.joelonsoftware.com/items/2008/03/17.html
>
>Good article.

    Quite.

> Should we conclude this was a result of the law of unintended
>consequences?

    Yes.  It is a case of making it easier in the beginning and
building up a huge technical debt.  How would you deal with the
situation?  Maybe, you have an answer, but I do not think there is a
simple answer now that will not break a lot of stuff.

> Or is HTML development an example of misapplying a rule (Postel's
>Law)?

    I think Postel's Law is shortsighted.

>Something for comp.risks?

    Yes.  I have just submitted it.

Sincerely,

Gene Wirchenko

Computerese Irregular Verb Conjugation:
    I have preferences.
    You have biases.
    He/She has prejudices.
David Cressey - 02 Jun 2008 20:13 GMT
> [snip]
>
[quoted text clipped - 31 lines]
>      You have biases.
>      He/She has prejudices.

(caution: tongue in cheek)

I think the Federal Reserve has a kind of reverse Postel's law:  be liberal
in what you issue,  be cautious in what you accept.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.