Re:The Rule of Silence (2006)
by verinus on Tuesday December 13, 2016 @06:54AM
(#13166143)
I'm with you when it comes to structured data, but plz no more data bases. these config files do not need to be centralized. I am thinking more in the direction of a parser that could check the validity of a configuration...
[ Parent
| on HN ]
Re:The Rule of Silence (2006)
by riskneural on Tuesday December 13, 2016 @07:11AM
(#13166211)
So, horribly unreadable xml config files?
Like S-expressions don't exist. Or even goddamn JSON. Come on, we don't have to jump from one stupidity (unstructured text) to another (using XML as a data representation format).
CSON or .desktop / .service or something similar is immediately understandable to most people and doesn't waste time with unnecessary tokens like XML does.
Re:The Rule of Silence (2006)
by stevedonovan on Tuesday December 13, 2016 @07:41AM
(#13166339)
Not necessarily. JSON is not bad, _if_ you allow comments. Even plain-jane key/value config files can be sanity-checked. I suspect part of the problem is that anything fancy like that is awkward to do in C, so people take the lazy way out.
Maybe many tiny sqlite databases? Then you would not need to to centralize your data in a single database, but still do queries across different config files.
SQLite is a huge win. All the power of SQL, and you don't have to introduce system-wide and non-local dependencies.