<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Why don&#8217;t you use YAML?</title>
	<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/</link>
	<description>Armin Ronacher thinking</description>
	<pubDate>Mon, 07 Jul 2008 10:29:44 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: Olivier</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3449</link>
		<author>Olivier</author>
		<pubDate>Sat, 12 Apr 2008 06:28:39 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3449</guid>
		<description>I used symfony a lot before (PHP framework) and they use yaml all over the place for configuration. This seems a good idea at first, especially when PHP is the alternative. Then come the trouble: yaml is only suited for totally static description, and you have access to no language tool *at all*, no variable, no formatting, for loop, nothing. This caused innumerable headaches to many users.

Python, compared to PHP, is very terse, and it is perfectly suited for writing configuration files. I don't see any advantage in using yaml when you can use python (except security?). This is what django does and it brings a flexibility that you cannot dream of with yaml.

I think this is why python programmers don't often use yaml: python itself is good enough for describing data, and it brings you the enormous power of the language, why limit yourself with yaml?

If for some good reason python wouldn't be possible for a given configuration file, then I would use yaml, but reluctantly.</description>
		<content:encoded><![CDATA[<p>I used symfony a lot before (PHP framework) and they use yaml all over the place for configuration. This seems a good idea at first, especially when PHP is the alternative. Then come the trouble: yaml is only suited for totally static description, and you have access to no language tool *at all*, no variable, no formatting, for loop, nothing. This caused innumerable headaches to many users.</p>
<p>Python, compared to PHP, is very terse, and it is perfectly suited for writing configuration files. I don&#8217;t see any advantage in using yaml when you can use python (except security?). This is what django does and it brings a flexibility that you cannot dream of with yaml.</p>
<p>I think this is why python programmers don&#8217;t often use yaml: python itself is good enough for describing data, and it brings you the enormous power of the language, why limit yourself with yaml?</p>
<p>If for some good reason python wouldn&#8217;t be possible for a given configuration file, then I would use yaml, but reluctantly.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Watters</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3416</link>
		<author>Kevin Watters</author>
		<pubDate>Fri, 11 Apr 2008 06:08:20 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3416</guid>
		<description>I wouldn't use YAML everywhere, but it's so much less pointlessly verbose for a lot use cases than XML.  We (http://www.digsby.com) actually wrote an entire skinning API in YAML!  

People are going to love it once it we release documentation for it :)

My only big complaint about YAML is that I that its creators decided that mappings were unordered.  So depending on which parser you use to read something like

this:
  is: my
awesome:
  map: see

The keys might come back in a different order.  (We use Python bindings for syck, btw.) There also is some ambiguity about mappings with duplicate keys--syck will give you a list of tuples instead of a dictionary, but I remember other parsers just giving you a mapping with only the "last" key.

IMO ordered mappings with possible duplicate keys (like XML provides) can more naturally describe a greater range of data, which more than makes up for the little bit of extra thinking you have to do with the data once it's parsed.</description>
		<content:encoded><![CDATA[<p>I wouldn&#8217;t use YAML everywhere, but it&#8217;s so much less pointlessly verbose for a lot use cases than XML.  We (http://www.digsby.com) actually wrote an entire skinning API in YAML!  </p>
<p>People are going to love it once it we release documentation for it :)</p>
<p>My only big complaint about YAML is that I that its creators decided that mappings were unordered.  So depending on which parser you use to read something like</p>
<p>this:<br />
  is: my<br />
awesome:<br />
  map: see</p>
<p>The keys might come back in a different order.  (We use Python bindings for syck, btw.) There also is some ambiguity about mappings with duplicate keys&#8211;syck will give you a list of tuples instead of a dictionary, but I remember other parsers just giving you a mapping with only the &#8220;last&#8221; key.</p>
<p>IMO ordered mappings with possible duplicate keys (like XML provides) can more naturally describe a greater range of data, which more than makes up for the little bit of extra thinking you have to do with the data once it&#8217;s parsed.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zed A. Shaw</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3408</link>
		<author>Zed A. Shaw</author>
		<pubDate>Fri, 11 Apr 2008 01:37:06 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3408</guid>
		<description>First off, my blog is about 80% joke so don't get you're panties in a bunch Longabow.  I've already contributed three projects and if the Python community can't withstand some friendly kidding and questioning of core beliefs from someone trying to understand then it's already more full of hatred than anything I could possibly bring.

Now, I wouldn't say people hate YAML so much as love Python way too much.  I think every couple of days someone would run into Vellum, see that it had YAML and then propose some braindead Pythonic build format that involved tons of ugly decorators all over the place, complex functions, and they keep missing the point that I'm interested in making the builds safe to load and analyze.  Can't do that with Python because of the stopping problem.  In fact, Google had to hack the Python interpreter (probably with Guido's help) to prevent the average moron from breaking things.  Proof right there a safer build format might be needed.

Honestly, Python isn't the best format for everything no matter how good it is at code.  YAML was good, but incredibly complex for the task.  Now Vellum has a syntax I wrote because that's fun (and it's cleaner).

I think what I did find irritating wasn't Pythonistas unwillingness to learn YAML, but that they had no objection to it when Google used it.  But even my complaints about that were a total huge joke.  Like I care that Google uses YAML.  People from Planet Python should revel in the fact that they're sanctified by lord Google.

So, watch for my later releases of Vellum, feel free to send me comments, and thanks for bringing up the question.</description>
		<content:encoded><![CDATA[<p>First off, my blog is about 80% joke so don&#8217;t get you&#8217;re panties in a bunch Longabow.  I&#8217;ve already contributed three projects and if the Python community can&#8217;t withstand some friendly kidding and questioning of core beliefs from someone trying to understand then it&#8217;s already more full of hatred than anything I could possibly bring.</p>
<p>Now, I wouldn&#8217;t say people hate YAML so much as love Python way too much.  I think every couple of days someone would run into Vellum, see that it had YAML and then propose some braindead Pythonic build format that involved tons of ugly decorators all over the place, complex functions, and they keep missing the point that I&#8217;m interested in making the builds safe to load and analyze.  Can&#8217;t do that with Python because of the stopping problem.  In fact, Google had to hack the Python interpreter (probably with Guido&#8217;s help) to prevent the average moron from breaking things.  Proof right there a safer build format might be needed.</p>
<p>Honestly, Python isn&#8217;t the best format for everything no matter how good it is at code.  YAML was good, but incredibly complex for the task.  Now Vellum has a syntax I wrote because that&#8217;s fun (and it&#8217;s cleaner).</p>
<p>I think what I did find irritating wasn&#8217;t Pythonistas unwillingness to learn YAML, but that they had no objection to it when Google used it.  But even my complaints about that were a total huge joke.  Like I care that Google uses YAML.  People from Planet Python should revel in the fact that they&#8217;re sanctified by lord Google.</p>
<p>So, watch for my later releases of Vellum, feel free to send me comments, and thanks for bringing up the question.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ToddB</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3403</link>
		<author>ToddB</author>
		<pubDate>Fri, 11 Apr 2008 00:18:40 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3403</guid>
		<description>When I finally learned about YAML, simplejson had just become available, and it was much lighter/didn't require c to compile. Also, lack of YAML in standard library is a no go for some. I don't like adding dependencies if I can avoid it.

I could be completely wrong....

ToddB</description>
		<content:encoded><![CDATA[<p>When I finally learned about YAML, simplejson had just become available, and it was much lighter/didn&#8217;t require c to compile. Also, lack of YAML in standard library is a no go for some. I don&#8217;t like adding dependencies if I can avoid it.</p>
<p>I could be completely wrong&#8230;.</p>
<p>ToddB</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug Napoleone</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3398</link>
		<author>Doug Napoleone</author>
		<pubDate>Thu, 10 Apr 2008 20:42:46 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3398</guid>
		<description>There is no hate for YAML amongst python developers.
As a mater of fact it was a love of YAML that prompted David Goodger to write docutils and develop ReStructuredText. 

We use YAML in python extensively at work.

Zed's Opinions != Reality</description>
		<content:encoded><![CDATA[<p>There is no hate for YAML amongst python developers.<br />
As a mater of fact it was a love of YAML that prompted David Goodger to write docutils and develop ReStructuredText. </p>
<p>We use YAML in python extensively at work.</p>
<p>Zed&#8217;s Opinions != Reality</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armin Ronacher</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3396</link>
		<author>Armin Ronacher</author>
		<pubDate>Thu, 10 Apr 2008 18:05:47 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3396</guid>
		<description>Hatred is probably not the best word for it. But it's certainly not love. And yes, it was not necessarily started by the Ruby community but at least pushed.

@3: Don't try to take Zed serious.

Regards,
Armin</description>
		<content:encoded><![CDATA[<p>Hatred is probably not the best word for it. But it&#8217;s certainly not love. And yes, it was not necessarily started by the Ruby community but at least pushed.</p>
<p>@3: Don&#8217;t try to take Zed serious.</p>
<p>Regards,<br />
Armin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ian Bicking</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3395</link>
		<author>Ian Bicking</author>
		<pubDate>Thu, 10 Apr 2008 18:02:37 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3395</guid>
		<description>I actually think it was a Python guy who started it.  At least, I vaguely remember the first parser was a Python parser.  Then it seemed to languish for some time (like a couple years) until some Ruby people took it up.

I guess YAML is okay, but I always thought it was a bit too clever for its own good.</description>
		<content:encoded><![CDATA[<p>I actually think it was a Python guy who started it.  At least, I vaguely remember the first parser was a Python parser.  Then it seemed to languish for some time (like a couple years) until some Ruby people took it up.</p>
<p>I guess YAML is okay, but I always thought it was a bit too clever for its own good.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Cory</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3394</link>
		<author>Cory</author>
		<pubDate>Thu, 10 Apr 2008 17:56:24 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3394</guid>
		<description>Uh, what hatred?  YAML was written by Python guys too, and intended to mimic Python.  A lot of the syntax is Python syntax.</description>
		<content:encoded><![CDATA[<p>Uh, what hatred?  YAML was written by Python guys too, and intended to mimic Python.  A lot of the syntax is Python syntax.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Smith</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3393</link>
		<author>Kevin Smith</author>
		<pubDate>Thu, 10 Apr 2008 17:36:11 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3393</guid>
		<description>I like YAML. I love the idea of it even more and I use it a little bit. I'm surprised given it's very python-ish use of indentation that Ruby people like and Python people don't?!

I suppose INI-files gained more traction within the python community and for YAML's seeming simplicity, the library comes across quiet heavy.</description>
		<content:encoded><![CDATA[<p>I like YAML. I love the idea of it even more and I use it a little bit. I&#8217;m surprised given it&#8217;s very python-ish use of indentation that Ruby people like and Python people don&#8217;t?!</p>
<p>I suppose INI-files gained more traction within the python community and for YAML&#8217;s seeming simplicity, the library comes across quiet heavy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Longabow</title>
		<link>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3392</link>
		<author>Longabow</author>
		<pubDate>Thu, 10 Apr 2008 17:22:00 +0000</pubDate>
		<guid>http://lucumr.pocoo.org/cogitations/2008/04/10/why-dont-you-use-yaml/#comment-3392</guid>
		<description>You don't understand the hatred because ... there is not hatred.

Please stop propagating Zed Shaw's nonsense. We should all be concerned that he now wants to be part of the Python, because all he sows is hatred, arrogance and sadness. 

As your post proves it ...</description>
		<content:encoded><![CDATA[<p>You don&#8217;t understand the hatred because &#8230; there is not hatred.</p>
<p>Please stop propagating Zed Shaw&#8217;s nonsense. We should all be concerned that he now wants to be part of the Python, because all he sows is hatred, arrogance and sadness. </p>
<p>As your post proves it &#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
