3 ms·
> For programmers, JSON works fine in my experience. The author mentions this, and I very strongly agree. What JSON significantly misses is the ability to have
by tonyarkles 8y ago
> For programmers, JSON works fine in my experience.
The author mentions this, and I very strongly agree. What JSON significantly misses is the ability to have comments in your configuration files. I'm not going to hold up the Apache config files as an example of amazing config formats, but... here's an example: https://svn.apache.org/repos/infra/websites/cms/webgui/conf/httpd.conf https://svn.apache.org/repos/infra/websites/cms/webgui/conf/...
That's awesome. It describes options that are available and not enabled, and what they do. Right. In. The. File. Comparing that to, say, webpack config... there's a pile of research needed to figure out what options are even available, let alone what they do.
- jlarocco 8y agoYeah, that's the #1 problem with JSON as a config file format, IMO, and the Apache logs, among others, are a perfect example of why. All the other arguments for or against it boil down to personal preference, but not having comments is a real miss.
- datavirtue 8y agoHow does json prevent you from using comments? It does what you tell it to do. It is an object representation. So make your objects have comments...magic.