[ale] Ubuntu 18.04 release notes

DJ-Pfulio DJPfulio at jdpfu.com
Fri Apr 27 14:02:15 EDT 2018


And compared to both those below, the old interfaces file is bonehead
simple. Indent or not. Tabs or spaces. Whatever

# ####################################
auto kr0
iface kr0 inet static
  address 172.22.22.6
  gateway 172.22.22.1
  netmask 255.255.255.0
  dns-nameservers 1.1.1.1 208.67.220.220

The yaml version **is** fairly readable.
JSON is only better than XML, IMHO. Non-trivial XML sucks.

On 04/27/2018 01:00 PM, Alex Carver via Ale wrote:
> On 2018-04-27 09:43, Kyle Brieden via Ale wrote:
>> https://twitter.com/sadoperator/status/989895215442837504
>>
>> But seriously, though, I appreciate YAML for what it is, and that is "a
>> human readable markup language".  It's easy to look over it and suss out
>> what is what, much like JSON.  I prefer JSON to YAML, but they're both
>> widely used and well implemented most of the time.
> 
> JSON is reasonably human readable and certainly does not depend on
> indentation to read it.
> 
> I can read and write this:
> 
> {
> "array1": {"A", "B", "C", "D"},
> "struct1": {"param1": val, "param2": val},
> "struct2": {"param3": val, "param4": val}
> "list":
>     {
> 	{"list_item_id": id, "list_item_name": "foo", "list_item_param": param },
> 	{"list_item_id": id, "list_item_name": "foo", "list_item_param": param },
> 	{"list_item_id": id, "list_item_name": "foo", "list_item_param": param }
>     }
> }
> 
> far easier and with less likelihood of errors due to whitespace (since
> JSON doesn't care) or wrong flags (dashes or not) and overall alignment
> compared to:
> 
> array1:
>     - A
>     - B
>     - C
>     - D
> struct1:
>     param1: val
>     param2: val
> struct2:
>     param3: val
>     param4: val
> list:
>     - list_item_id: id
>       list_item_name: foo
>       list_item_param: param
>     - list_item_id: id
>       list_item_name: foo
>       list_item_param: param
>     - list_item_id: id
>       list_item_name: foo
>       list_item_param: param
> 
> 
> Did I use tabs or spaces?  Do I have the list items in the right spot
> because not all of them use the dash?  Do the number of spaces between
> the dash and the name matter for the later items?  Plus all of the
> weirdness of additional flags like literal versus folded scalars where
> with the JSON I'd just embed the new lines where and when needed.
> _______________________________________________
> 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
> 


-- 
Got Linux? Used on smartphones, tablets, desktop computers, media
centers, and servers by kids, Moms, Dads, grandparents and IT
professionals.


More information about the Ale mailing list