News for hackers. Stuff that matters.
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...
Re:The Rule of Silence (2006) by riskneural on Tuesday December 13, 2016 @07:11AM (#13166211)
So, horribly unreadable xml config files?
Re:The Rule of Silence (2006) by TeMPOraL on Tuesday December 13, 2016 @07:36AM (#13166314)
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).
Re:The Rule of Silence (2006) by nailer on Tuesday December 13, 2016 @07:28AM (#13166288)
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.
Re:The Rule of Silence (2006) by karl42 on Tuesday December 13, 2016 @07:38AM (#13166322)
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.
Re:The Rule of Silence (2006) by TeMPOraL on Tuesday December 13, 2016 @07:42AM (#13166345)
SQLite is a huge win. All the power of SQL, and you don't have to introduce system-wide and non-local dependencies.
Re:The Rule of Silence (2006) by flukus on Tuesday December 13, 2016 @07:37PM (#13172761)
How is this a win? Instead of opening a text file we have to write update statements to change any setting. Sql is itself a verbose language that should have been discarded in the 80's.