Sand Fox (Posts about yaml)https://sandfox.me/tags/yaml.xml2024-03-25T17:50:29ZAnton SmirnovNikolaTOML vs YAMLhttps://sandfox.me/misc/toml-yaml.html2021-08-10T03:41:00+03:002021-08-10T03:41:00+03:00Anton Smirnov<div><p>So... Let's compare.</p>
<p><a href="https://sandfox.me/misc/toml-yaml.html">Read more…</a> (3 min remaining to read)</p></div>Is NEON a Better YAML?https://sandfox.me/misc/neon-better-yaml.html2020-06-15T22:18:00+03:002020-05-29T06:18:00+03:00Anton Smirnov<div><p>Short answer: NO. If you know what I mean.</p>
<p><a href="https://sandfox.me/misc/neon-better-yaml.html">Read more…</a> (1 min remaining to read)</p></div>What's Wrong with StrictYAMLhttps://sandfox.me/misc/strictyaml-problems.html2020-05-29T05:48:00+03:002020-05-29T05:48:00+03:00Anton Smirnov<div><p>While I'm still delaying my position on TOML vs YAML holy war let's look at the <a class="reference external" href="https://hitchdev.com/strictyaml/">StrictYAML</a>.</p>
<blockquote>
<p>StrictYAML is a type-safe YAML parser that parses and validates a restricted subset of the YAML specification.</p>
</blockquote>
<p>Seems great but <a class="reference external" href="https://hitchdev.com/strictyaml/features-removed/">let's look at the removed features list</a>, Implicit Typing to be precise:</p>
<p><a href="https://sandfox.me/misc/strictyaml-problems.html">Read more…</a> (1 min remaining to read)</p></div>On Common Misuse of the File Formatshttps://sandfox.me/misc/file-formats-misuse.html2019-10-25T18:20:00+03:002019-10-25T18:20:00+03:00Anton Smirnov<div><p>A small rant about text file format holy wars.
I believe that most of the file formats that participate in these holy wars are rather good
and the most of the frustration comes from their misuse.</p>
<p><a href="https://sandfox.me/misc/file-formats-misuse.html">Read more…</a> (1 min remaining to read)</p></div>Composer Yamlhttps://sandfox.me/php/composer-yaml.html2019-04-19T22:00:00+03:002019-04-19T22:00:00+03:00Anton Smirnov<p>My new library to allow composer to read config from YAML file.
There is some demand in comments for composer config but <a class="reference external" href="https://github.com/composer/composer/issues/440">the developers are not interested</a>
and most 3rd party attempts to solve it are limited to yaml2json converters.</p>
<p>I tried a slightly different approach.
There is a command in the composer itself that changes the way the config is read: <code class="docutils literal">composer global</code>.
During its execution it changes current working directory, resets composer state, and forces the composer
to read config from another directory.</p>
<p>What I tried to do:
I put yaml2json converter in place of <code class="docutils literal">global</code>'s directory changing code, and it seems it worked.
Of course, some things got broken like any command that tries to change composer.json will no longer have any effect,
however many people don't use them and it may be an acceptable tradeoff for using yml-based config.</p>
<p>You can find the project on my new dev website: <a class="reference external" href="https://sandfox.dev/php/composer-yaml.html">https://sandfox.dev/php/composer-yaml.html</a></p>