3 ms·
If you still aren't convinced YAML is terrible, try copying and pasting YAML fragments with a regular text editor. You might end up with valid YAML, but you wo
by beders 7y ago
If you still aren't convinced YAML is terrible, try copying and pasting YAML fragments with a regular text editor.
You might end up with valid YAML, but you won't know until the YAML consumer barfs.
BTW, all of a sudden XML with DTDs are looking sane again :)
- KaoruAoiShiho 7y agoUse the right tool for the job. I use yaml extensively but never in a situation where someone would want to edit it with a regular text processor.
- beders 7y agodo you deliver a YAML editor with your software? Because people will use notepad or nano to edit that stuff.
- KaoruAoiShiho 7y agoSort of, I deliver a GUI that exports into YAML for pretty much only reading, portability, and version control. People are expected to do the editing in the GUI, only using YAML for editing when doing complex regex operations that my GUI doesn't support.
- twic 7y agoIf people aren't editing it by hand, why does the format matter? Why not just use JSON? Tools for too-complex-for-the-GUI manipulations are at least as good for JSON as they are for YAML, and the editing is less error-prone.
- KaoruAoiShiho 7y agoInternally it is JSON. It exports as YAML for readability when sharing on discord.