2 ms·
I like json I kind of wish it had two and only two features: defined ordering, and comments As to languages for configuration (specifically), I wish there was
by m463 1y ago
I like json
I kind of wish it had two and only two features: defined ordering, and comments
As to languages for configuration (specifically), I wish there was a good specification for a program config, where you would have one well-defined configuration file for defaults, and a user-specified configuration file for the values you have set/overriden.
say default.config:
{"player_name":"player", "mouse_speed":5}
and my.config:
{"player_name":"me"}
in some way that upgrading the program could do stuff with default.config without destroying your existing config.
- joombaga 1y agoThat's a pretty common config pattern. SublimeText does that, and when you edit the settings it opens a 2 paned editor with the default config on the left and user config on the right.
- hdjrudni 1y agoWhy do you and the author want 'defined ordering'? I don't think I've wanted that in a config language. I rely on it a tiny bit in PHP. In JS, if order matters, I just use an array, and it's really never been a big deal. Maps/dicts should be unordered IMO.