انضم إلى نوستر
2025-04-19 19:22:18 UTC

Murteza Yesil on Nostr: Dear developers, Please don't use JSON for configuration files. It is intended for ...

Dear developers,
Please don't use JSON for configuration files. It is intended for carrying data, and nothing else. Therefore, it is good at carrying data, and nothing else.

I strongly believe that anything that doesn't support comments shouldn't be used for configs. Comments are indispensable for short documentation, or putting a URL to proper documentation.

There are other plain text file formats better fit for this purpose, such as TOML, YAML, and even XML.