Ancestors

Toot

Written by federico :debian: on 2025-01-30 at 09:36

Don't use YAML for configuration files. A single incorrect whitespace is enough to break indentation making subtle configuration changes that are easy to miss.

=> More informations about this toot | More toots from federico3@oldbytes.space

Descendants

Written by :So_happy_smiling_cat: kittyfailure on 2025-01-30 at 09:38

@federico3

=> More informations about this toot | More toots from cybertailor@wetdry.world

Written by sumanthvepa on 2025-01-30 at 09:39

@cybertailor @federico3

What would be a good alternative?

[#]JSON? #TOML?

=> More informations about this toot | More toots from sumanthvepa@mastodon.social

Written by federico :debian: on 2025-01-30 at 09:46

@sumanthvepa @cybertailor JSON does not support comments, JSONC is not popular, TOML and INI have their own footguns as well... but at least JSON can be formatted clearly and with the least ambiguity. #devoops

=> More informations about this toot | More toots from federico3@oldbytes.space

Written by binaryphile on 2025-01-30 at 13:42

@federico3 @sumanthvepa @cybertailor I've heard high praise for pkl from people I respect but haven't had a reason to check it out myself: https://pkl-lang.org/

=> More informations about this toot | More toots from binaryphile@fosstodon.org

Written by :So_happy_smiling_cat: kittyfailure on 2025-01-30 at 09:52

@sumanthvepa @federico3 some standard key-value format (TOML, INI, JSON) for simple configs, and a custom lexer&parser to describe complex confuguration with clean and concise syntax

=> More informations about this toot | More toots from cybertailor@wetdry.world

Written by /etc/init.d/witch.navi on 2025-01-30 at 09:56

@cybertailor @sumanthvepa @federico3

i also recommend scfg: https://git.sr.ht/~emersion/scfg

=> More informations about this toot | More toots from navi@social.vlhl.dev

Written by federico :debian: on 2025-01-30 at 11:08

@navi @sumanthvepa @cybertailor Wow, scfg looks pretty robust, with named/typed entities and especially if it allows dimensional analysis. It even has a proper BNF.

=> More informations about this toot | More toots from federico3@oldbytes.space

Written by arclight on 2025-01-30 at 11:30

@federico3 @navi @sumanthvepa @cybertailor Definitely looks interesting

=> More informations about this toot | More toots from arclight@oldbytes.space

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113916629009809579
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
297.364203 milliseconds
Gemini-to-HTML Time
1.973049 milliseconds

This content has been proxied by September (3851b).