[ale] Ubuntu 18.04 release notes
Kyle Brieden
kyle at txmoose.com
Fri Apr 27 14:04:21 EDT 2018
It's almost as if different standards, designed by humans, are fallible
in their own ways and aren't perfect for every given situation. :P
I do prefer JSON to YAML for reasons stated earlier in this chain. I
feel like JSON is a really good balance between human and machine
parsable, but with the frankly absurd multitude of tools at our disposal
these days, unless you're writing basically everything in
TextEdit/Notepad/Nano (and even nano may have plugins, but I can't speak
to that), there's no reason to take 60 seconds and install a plugin that
lints/parses YAML/JSON for you as you type.
I also disagree with the implication that you can't run YAML through a
linter. It is designed to be a machine-parsable format, therefore it
must be structured, and if it is well structured, programmatic linting
is possible. It's a markup language, not english :P
---
Very respectfully,
Kyle Brieden
On 27-04-2018 13:41, Alex Carver via Ale wrote:
> On 2018-04-27 10:06, leam hall via Ale wrote:
>> YAML spacing drives my nuts on a frequent basis since I use Ansible.
>> However, JSON dies if you miss a comma.
>
> True, but at least that's parsable. You can run a JSON through a
> linter
> or break it up into lines like my original example and the missing
> comma will be more visible. I've run into that before writing for
> embedded devices where I was returning JSON formatted data (for ease of
> parsing on the other end) and forgot the comma (easy to do when the
> JSON
> is hand typed into the code as the formatting string for snprintf().
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> https://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0x89C9D831.asc
Type: application/pgp-keys
Size: 3053 bytes
Desc: not available
URL: <http://mail.ale.org/pipermail/ale/attachments/20180427/5383d753/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: OpenPGP digital signature
URL: <http://mail.ale.org/pipermail/ale/attachments/20180427/5383d753/attachment.sig>
More information about the Ale
mailing list