4 ms·
I think YAML is a good pick for non-developers / content creators. The front matter section in Markdown files is a good example. Or is there a better, human-fri
by tipiirai 3y ago
I think YAML is a good pick for non-developers / content creators. The front matter section in Markdown files is a good example. Or is there a better, human-friendly alternative?
- pvorb 3y agoYAML is all but human-friendly. It has far too many special features and edge cases for most people. Something simple like Java properties files would solve something like markdown front matter perfectly fine.
- Hackbraten 3y agoJava properties files are a mess. They still require Windows encoding (ISO-8859-1), which is incompatible with UTF-8.
- thfuran 3y agoOnly if you're still using java 8.
- Hackbraten 3y agoThat's a common misconception. Look at the documentation [0] or at the OpenJDK code. Both assume ISO-8859-1, unless you're dealing with a special case where resource bundles are involved. [0]: https://docs.oracle.com/en/java/javase/21/docs/api/java.base/java/util/Properties.html https://docs.oracle.com/en/java/javase/21/docs/api/java.base...
- int_19h 3y agoISO-8859-1 is Latin-1, there's nothing specifically "Windows" about it.
- Hackbraten 3y agoYou're correct.
- pvorb 3y agoYou were probably thinking of Windows-1252, which is an extension of ISO-8859-1 that supports more European character sets.
- deleted 3y ago[deleted]
- kristiandupont 3y agoYou just pinpointed my biggest peeve with YAML. It looks like it's "human friendly" because there are no scary curly braces. But you still need to get the syntax exactly right, so that benefit is very small. And now you have to keep your finger on the screen while scrolling in order to figure out what a bullet belongs to.
- tipiirai 3y agoThen what alternative do you recommend for content creators? Do you use the alternative in Markdown front matter?
- hoseja 3y agoI don't think they have a need for configuration files while filming their tiktoks.
- tipiirai 3y agoWhat is the best term to use for the people who are writing content on the web team? The ones who write blog entries, documentation, and marketing pages. The ones who mainly touch Markdown files.
- jasonjayr 3y agoTOML is pretty easy to grok and forgiving at the same time
- DonHopkins 3y agoLearn JavaScript. Get the fuck out of your "content creator" pigeonhole. JavaScript is content.
- tipiirai 3y agoI don't think anyone writes their blog entries with JavaScript here.
- 3y ago
- tovej 3y agoI'd personally go with TOML over YAML for that
- rascul 3y agoWhy something so complex for front matter? Isn't it typically just a few key/value pairs?