onlinepersona@programming.dev to Programmer Humor@programming.devEnglish · 1 year agoShow me a better text format for serializingimgur.comexternal-linkmessage-square64fedilinkarrow-up1115arrow-down125file-text
arrow-up190arrow-down1external-linkShow me a better text format for serializingimgur.comonlinepersona@programming.dev to Programmer Humor@programming.devEnglish · 1 year agomessage-square64fedilinkfile-text
minus-squarecolourlessidea@feddit.delinkfedilinkarrow-up16arrow-down1·1 year agoYAML is pretty good for readability, pretty awful for writability
minus-squaresynae[he/him]@lemmy.sdf.orglinkfedilinkEnglisharrow-up10·1 year agoInteresting, I find that the other reasonable options are far less writable than yaml
minus-squareNewPerspective@lemmy.worldlinkfedilinkarrow-up6·1 year agoRule of thumb: valid json is valid yaml. If you’re ever unsure, do it the old fashioned way.
minus-squareintensely_human@lemm.eelinkfedilinkarrow-up1·1 year agoI really don’t see how that’s true. You’re telling me this is valid yaml? { firstName: “Intensely” } How is that yaml?
minus-squareNewPerspective@lemmy.worldlinkfedilinkarrow-up4·1 year agoDon’t listen to me, put that in a yaml validator for yourself: https://yamllint.com
minus-squareFal@yiffit.netlinkfedilinkEnglisharrow-up1arrow-down1·1 year agoNo, because that’s not valid json
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.
I really don’t see how that’s true.
You’re telling me this is valid yaml?
How is that yaml?
Don’t listen to me, put that in a yaml validator for yourself: https://yamllint.com
No, because that’s not valid json