Elektrine lite

← Feed

@curious_carrot@mastodon.social

Post #3377996

2026-04-25 21:06 UTC

@cks@mastodon.social Apologies, I might be asking a question you already answered. What would be a more user-friendly data format? What would you recommend?

Replies (1)

  • @cks@mastodon.social 2026-04-25 21:17

    @curious_carrot@mastodon.social YAML is better than JSON but not particularly good. TOML is better than YAML if you have something that it's simple enough for. UCL¹ might work okay for somewhat straightforward configuration files. Otherwise, no, you cannot have a generic configuration file format. You will have to design and parse your own, one that takes into account both general lessons learned and the specific configuration needs of your program. ¹ https://github.com/vstakhov/libucl

    Open ##3377997