News for hackers. Stuff that matters.
Re:Programmers and Sadomasochism by peregrine on Sunday February 22, 2009 @12:30PM (#490699)
You provide a good argument, but what I was trying to communicate was that the sender is still sending an standard format. The coder just makes a bug in his XML and instead of bringing down the whole house its handled.
Re:Programmers and Sadomasochism by jerf on Sunday February 22, 2009 @12:43PM (#490701)
XML isn't "this sort of thing with tags and attributes". It's a rigidly-specified format, and for any given series of bytes and an encoding, it either is or is not XML. If there's a "bug in his XML", it isn't XML anymore.

You can talk about what to do with this not-XML, but you can't just pretend it is XML. It isn't, because XML is not just this fuzzy thing, it's a very, very, very specific thing.

Re:Programmers and Sadomasochism by tlrobinson on Sunday February 22, 2009 @06:51PM (#491018)
If the parser allows the programmer to be sloppy they may not know they're making a mistake. If they try to use another parser that doesn't handle their mistake the same way, it will break.

Worse, in the case of browsers, each browser vendor wants to be sure every major site works in their browser, so they have to go out of their way to program in all these special cases. See tolmasky's comment above.