News for hackers. Stuff that matters.
Re:The Architecture of Open Source Applications: Nginx by rdtsc on Monday November 23, 2015 @04:00PM (#10617259)
JSON doesn't allow comments. So it is an ok-ish config format. Yaml would have been better. But they probably wrote everything from scratch to be optimized and decided if they are writing a parser for a config file might as well invent a config file format as well :-)
Re:The Architecture of Open Source Applications: Nginx by CrLf on Monday November 23, 2015 @04:28PM (#10617430)
Not allowing comments doesn't make JSON an "ok-ish" config format, it makes it completely _unsuitable_ for it.
Re:The Architecture of Open Source Applications: Nginx by rdtsc on Monday November 23, 2015 @04:46PM (#10617550)
But it is used though pretty oftne. That's why it is an -ish format ;-)

You can do things like

   {
     "comment": ["blah blah comment message"],
     "k1" : "v1", "k2" : "v2", ... 
   }
Or some silliness like that.
Re:The Architecture of Open Source Applications: Nginx by FooBarWidget on Monday November 23, 2015 @04:03PM (#10617277)
Nginx was invented before the days of JSON and YAML...
Re:The Architecture of Open Source Applications: Nginx by nkozyra on Monday November 23, 2015 @04:07PM (#10617299)
JSON, sure, but I think YAML pre-dated the launch of nginx (if not the initial development).

https://groups.yahoo.com/neo/groups/sml-dev/conversations/to...

Re:The Architecture of Open Source Applications: Nginx by FooBarWidget on Monday November 23, 2015 @04:09PM (#10617318)
YAML initial release: 2001 Nginx initial release: 2004

Well ok. But I'd still argue that Nginx was invented before the popularization of YAML. I think I didn't see YAML until I got in touch with Rails in 2007, which used the format extensively. And even then, almost everyone I met didn't take it seriously, saying that it is a joke until Microsoft, IBM, etc support it.

Re:The Architecture of Open Source Applications: Nginx by samspot on Monday November 23, 2015 @05:12PM (#10617709)
{ "//This": "works though!" }