this post was submitted on 14 Nov 2023
2 points (100.0% liked)

Self-Hosted Main

21 readers
1 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

For Example

We welcome posts that include suggestions for good self-hosted alternatives to popular online services, how they are better, or how they give back control of your data. Also include hints and tips for less technical readers.

Useful Lists

founded 1 year ago
MODERATORS
 

I dunno why, but I have a thing against TOML. I could be reading a blog post and marvelling at the intellect of the author, but if it cuts to a code snippet of TOML I smack my teeth and question how I ended up on such an amateur site.

My opinion is not rational neither is it grounded in any technical reasoning or logic. I'd even consider myself syntactically promiscuous when it comes to pretty much any other markup language. For some reason YAML and TOML make me feel like I need to pick sides and I'm definitely a YAMLite.

I'm curious to know whether anyone else is this abnormally partisan towards YAML and TOML?

top 10 comments
sorted by: hot top controversial new old
[–] Knusper@feddit.de 3 points 11 months ago

Well, I can't stand YAML, because I had to spend half a year extending a far too complex Ansible codebase. It felt like they made a Turing-complete language out of what's supposed to be declarative. And it feels like a good chunk of that was enabled by YAML offering an enormous amount of features itself.

So, yeah, I mostly just prefer TOML, because it's less easily turned into a Turing-complete language.

[–] kogasa@programming.dev 2 points 11 months ago

Daddy issues?

[–] xkcd__386@alien.top 1 points 11 months ago

I suspect you're either reacting to the "Tom" (which is what the T in TOML stands for), making it sound like some "one guy's" project that never really took off...

...or the fact that it reminds you of the Windows INI file format. (TBH, git's config file also uses something that reminds me of Windows INI, and it took me a while to get over it)

[–] ithilelda@alien.top 1 points 11 months ago (1 children)

From my point of view, most things related to software config is hierachical, meaning that a tree like structure is the most intuitive in understanding them. YAML is tree based, while TOML is section based. I find YAML much easier to keep track of. And I have great experience with Python, so the indentation is pretty straight forward for me.

But I'm not picking sides and defying the other. It's purely personal mind set related. Actually I do find some workflow very suited for TOML, like build systems, where each task is in its own section, shouting clear cut domain and dependency boundaries.

[–] iavael@alien.top 1 points 11 months ago

TOML is tree-based too. It's just more verbose than YAML for explicivity.

[–] he-tried-his-best@alien.top 1 points 11 months ago (2 children)

Fuck indent based notation in general.

[–] lilolalu@alien.top 1 points 11 months ago
  Fuck it all
[–] NikStalwart@alien.top 1 points 11 months ago (1 children)

Python has entered the chat.

[–] he-tried-his-best@alien.top 1 points 11 months ago (1 children)

Ugh. I learnt Java and C# as my primary language back in the day. Imagine my disgust when I took a look at python to teach my kids. Just so wrong

[–] platypus_plumba@alien.top 1 points 11 months ago

It grows on you over time, but it takes a long time.