TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Comparison of configuration file languages (2016)

21 pointsby aleyan7 months ago

3 comments

itohihiyt7 months ago
I love me an INI. By far, IMO, the best human readable config syntax. Sure it&#x27;s got some gotchas, like all old formats (CSV) there&#x27;s no spec. But if I have the choice I&#x27;d go INI. It&#x27;s simple and leaves the choices up to the program that&#x27;s reading the file, because everything is a string.<p>To me there&#x27;s no difference in this articles argument that with INI people would have to remember about the idiosyncrasies of the python implementation related to comments, and people having to know and learn the correct syntax of TOML. I&#x27;d say remembering when and where you can comment is easier too.<p>Either way it&#x27;s personal preference. I do occasionally like to reread this though (because I&#x27;m boring): <a href="https:&#x2F;&#x2F;github.com&#x2F;madmurphy&#x2F;libconfini&#x2F;wiki&#x2F;An-INI-critique-of-TOML">https:&#x2F;&#x2F;github.com&#x2F;madmurphy&#x2F;libconfini&#x2F;wiki&#x2F;An-INI-critique...</a>
评论 #41961375 未加载
评论 #41962752 未加载
OskarS7 months ago
More and more the last couple of years, I’ve started to realize that ”configuration languages” are just a bad idea. Please, for the love of all that is holy, just let us use a real programming language. For simple declarative configuration, it’s no more difficult to use Python (or Lua or whatever) than YAML, and for complex configuration (looking at you, YAML files for GitLab CI), it’s an absolute godsend to be able to use real if-statements and for-loops. If security&#x2F;runtime is a concern, you can sandbox it or use something like Starlark.<p>JSON is a fine over-the-wire format, but can’t we leave YAML in the dustbin and just do it ”properly” from now on? Please?
评论 #41961352 未加载
评论 #41961139 未加载
评论 #41960874 未加载
评论 #41961529 未加载
评论 #41961183 未加载
评论 #41961064 未加载
评论 #41961507 未加载
oezi7 months ago
If JSON would allow comments (and trailing commas would be nice as well), then I think it would be a strong contender for a config format as well.
评论 #41960755 未加载
评论 #41961244 未加载