.yaml, .toml, etc?

1 point

Whatever. Comments are helpful, which makes pure JSON a poor choice. JSON5 or JSON-C are better, but linting and static analysis are important to every form of code, so make sure that what you use for that will understand your syntax.

My current preference is generally TOML, but I’ve started dabbling with custom HCL2 DSLs. (I write a lot of Go and Terraform.)

permalink
report
reply
2 points
*
Deleted by creator
permalink
report
reply
1 point

Might be somewhat partial to CueLang but that needs an external tool to fiddle with.

I mostly use YAML or TOML depending on what’s being configured.

permalink
report
reply
3 points

Need it to be user editable in a text editor? YAML. Otherwise, JSON.

permalink
report
reply
8 points
*

No reason to go beyond simple key-value format like dotenv or just env variables. If you need more structure then maybe you are confusing configuration with state and this is not really the same thing.

permalink
report
reply

Experienced Devs

!experienced_devs@programming.dev

Create post

A community for discussion amongst professional software developers.

Posts should be relevant to those well into their careers.

For those looking to break into the industry, are hustling for their first job, or have just started their career and are looking for advice, check out:

Community stats

  • 11

    Monthly active users

  • 77

    Posts

  • 540

    Comments