98
TOML (lemmy.ml)
you are viewing a single comment's thread
view the rest of the comments
[-] dessalines@lemmy.ml 9 points 16 hours ago* (last edited 16 hours ago)

I love hjson / json5 for config files: https://hjson.github.io/

Never understood the toml philosophy of trying to flatten every object field.

[-] Ephera@lemmy.ml 4 points 14 hours ago

Well, TOML is essentially just an extension of the INI format (which helped its adoption quite a bit, since you could just fork INI parsers for all kinds of programming languages).

And then, yeah, flattening everything is kind of baked into INI, where it arguably made more sense.
Although, I do also feel like non-techies fare better with flat files, since they don't have to understand where into the structure they have to insert the value. They just need find the right "heading" to put the line under, which is something they're familiar with.

this post was submitted on 24 Feb 2026
98 points (96.2% liked)

Programmer Humor

41128 readers
237 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 6 years ago
MODERATORS