Xfce does one thing very right: It stores its settings in plain-text XML files. This allows me to easily read, track, and maybe even distribute these settings to other machines.
(Unlike GNOMEās dconf, which uses some binary file format. Fun fact: The older and now deprecated gconf also used XML files.)
#euobsca
(#euobsca) @kat@yarn.girlonthemoon.xyz I kind of like XML because itās mostly well-defined and easy for humans to read (unlike YAML, which is a complete mess, imho) ⦠and at the same time, it can get complicated really fast. 𫤠But at least itās plain-text ā thatās the important part in this case. š
#mbhasca
(#euobsca) @movq@www.uninformativ.de @kat@yarn.girlonthemoon.xyz Any text format beats a binary configuration format. However, YAML and XML are both terrible choices in my opinion. Iād prefer YAML over XML if I had to.
#26jdnda
(#euobsca) @lyse@lyse.isobeef.org @kat@yarn.girlonthemoon.xyz I spent so much time in the past figuring out if something is a dict or a list in YAML, for example.
What are the types in this example?
items:
- part_no: A4786
descrip: Water Bucket (Filled)
price: 1.47
quantity: 4
- part_no: E1628
descrip: High Heeled "Ruby" Slippers
size: 8
price: 133.7
quantity: 1
items
is a dict containing ⦠a list of two other dicts? Right?
It is quite hard for me to grasp the structure of YAML docs. š¢
The big advantage of YAML (and JSON and TOML) is that itās much easier to write code for those formats, than it is with XML. json.loads()
and youāre done.
#roh5fka
(#euobsca) @movq@www.uninformativ.de I found it quite easy to mentally parse this structure.
#helbifa
(#euobsca) @lyse@lyse.isobeef.org So it might just be what the youngsters call a āskill issueā? š
#dlh4orq
(#euobsca) @movq@www.uninformativ.de @kat@yarn.girlonthemoon.xyz Iām just used to it because I deal with such things all the time. :-)
#m3ryh2a
(#euobsca) Look at that, a mate just told me: What if YAML had even more security issues!? YAMLScript! https://yamlscript.org/doc/cheat/
#x3vq7tq