5 ms·
You 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 synta
by kristiandupont 3y ago
You 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.
- Zambyte 3y agoYou should make what you do / don't do less of your identity. You're limiting yourself because you identify as "not the kind of person who does that".
- tipiirai 3y agoNote that I am not a content creator myself. I build solutions for web teams and on those teams, some people focus solely on content and Markdown. I want to offer them an easy editing experience. So far YAML has been the easiest format for them.
- never_inline 3y agoThis is least of my worries - just use VScode with plugin which gives red lines on and formats yaml, use yamllint in your CI.
- orphea 3y agoBasically you're saying YAML is unreadable without an IDE or a text editor with advanced highlighting functionality.
- robertlagrant 3y ago> But you still need to get the syntax exactly right I think it's more that it's declarative that makes it simple. Also you just have to remember simpler rules compared to JSON. E.g. - Apple - Orange - Strawberry - Mango Is simpler than [ "Apple", "Orange", "Strawberry", "Mango" ] Don't forget to skip that last comma! But not all of the others!
- kristiandupont 3y ago>I think it's more that it's declarative that makes it simple ..it's no more or less declarative than other configuration languages? And yes, I get that it looks simpler. I just think that it applies as long as your file can fit in about half a page. As it grows and becomes deeply nested, IMO, that simplicity disappears.