|
|
|
|
|
by JimDabell
3991 days ago
|
|
> I don't understand why we should use JSON to configure a server, when a much more powerful language exists: Javascript. Because it's more powerful. More powerful, in many cases, is a worse thing. Executable imperative code isn't as flexible as a data file because all you can really do with it is execute it and take the output, rather than process it as you see fit. See: Rule of Least Power – https://en.wikipedia.org/wiki/Rule_of_least_power Principle of Least Power – http://c2.com/cgi/wiki?PrincipleOfLeastPower |
|
Take for instance the idea of the "semantic web", where information is stored neatly into proper html tags. It has turned out that this is not a very useful approach to storing information, and nowadays big search engines use machine learning techniques instead to extract the information.