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
@federico3
=> More informations about this toot | More toots from cybertailor@wetdry.world
@cybertailor @federico3
What would be a good alternative?
[#]JSON? #TOML?
=> More informations about this toot | More toots from sumanthvepa@mastodon.social
@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
@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
@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
@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
@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
@federico3 @navi @sumanthvepa @cybertailor Definitely looks interesting
=> More informations about this toot | More toots from arclight@oldbytes.space This content has been proxied by September (3851b).Proxy Information
text/gemini