News for hackers. Stuff that matters.
Re:Postel’s Principle is a Bad Idea by benatkin on Sunday February 03, 2013 @05:48PM (#5161547)
I'd be more interested in reading a paper called How JSON escaped Postel's Principle which included discussion on the ambiguity being pushed to other areas, such as date parsing.
Re:Postel’s Principle is a Bad Idea by tedunangst on Sunday February 03, 2013 @06:36PM (#5161694)
Once upon a time, somebody wrote a json parser that used an existing date parser because component reuse is the shizzle. Then somebody updated the date parser to handle more formats because they were using it in a different project. Congratulations, now you have a json parser that eats a multitude of date formats. (Some liberties with facts taken, but building a tower out of flexible components results in a flexible tower.)
Re:Postel’s Principle is a Bad Idea by warmfuzzykitten on Tuesday February 05, 2013 @03:02AM (#5169688)
When did that happen? There is a JSON standard, http://www.ietf.org/rfc/rfc4627.txt, but I have yet to find a parser that follows it, including Crockford's original "reference implementation". As a result, there's no point in developing a conformant parser, as no one would use it. They're off chasing date formats, capitalized keywords, functions (!!) blissfully unaware or willfully heedless of the impact on interoperability.