onlinepersona@programming.dev to Programmer Humor@programming.devEnglish · 8 months agoShow me a better text format for serializingimgur.comexternal-linkmessage-square39fedilinkarrow-up1128arrow-down127file-text
arrow-up1101arrow-down1external-linkShow me a better text format for serializingimgur.comonlinepersona@programming.dev to Programmer Humor@programming.devEnglish · 8 months agomessage-square39fedilinkfile-text
minus-squarecolourlessidea@feddit.delinkfedilinkarrow-up17arrow-down1·8 months agoYAML is pretty good for readability, pretty awful for writability
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up10·8 months agoInteresting, I find that the other reasonable options are far less writable than yaml
minus-squareNewPerspective@lemmy.worldlinkfedilinkarrow-up7·8 months agoRule of thumb: valid json is valid yaml. If you’re ever unsure, do it the old fashioned way.
minus-squareNewPerspective@lemmy.worldlinkfedilinkarrow-up4·8 months agoDon’t listen to me, put that in a yaml validator for yourself: https://yamllint.com
YAML is pretty good for readability, pretty awful for writability
Interesting, I find that the other reasonable options are far less writable than yaml
Rule of thumb: valid json is valid yaml. If you’re ever unsure, do it the old fashioned way.
Removed by mod
Don’t listen to me, put that in a yaml validator for yourself: https://yamllint.com