Re:Why Mongrel2 Doesn't Use INI Files (Zed Shaw)
by gaius on Sunday October 10, 2010 @02:14PM
(#1777567)
parsing a config is a hell of a lot harder than just loading it out of a sqlite file
Is there really no library for that? </rhetorical> The usual INI file format has been unchanged since the 80s!
[section1]
param1=value1
param2=value2
; this is a comment
[section2]
param3=value3
And the reason it's stuck around for so long, on every platform you can think of, is it works, it's bulletproof, and everyone understands it at a glance. Anyone can come up with their own scheme, then you end up how it is Javaland right now, where the "application" is just a runtime for the application written in a custom one-off language which is the 10,000-line XML configuration...
Anyway, the people who get called at 3am when production is down won't thank you for introducing yet another config file format.
Is there really no library for that? </rhetorical> The usual INI file format has been unchanged since the 80s!
And the reason it's stuck around for so long, on every platform you can think of, is it works, it's bulletproof, and everyone understands it at a glance. Anyone can come up with their own scheme, then you end up how it is Javaland right now, where the "application" is just a runtime for the application written in a custom one-off language which is the 10,000-line XML configuration...Anyway, the people who get called at 3am when production is down won't thank you for introducing yet another config file format.