in reply to Re^5: An Idiot's Guide to YAML
in thread An Idiot's Guide to YAML

The frontier between what is a data and a configuration format seems sometime quite blurry.

INI are nice except when you have really nested information structure. They probably should only be used as configuration file, not as data store or worse read-write configuration files with some program state ad/or piece if code stored inside (I have seen both). If only because I may want to store configuration files on read-only media. And as previously highlighted by mr_mischief the INI format knows some various subtly incompatible variations.

XML is so well known for its abuses that there is no need to list them. But supported nearly everywhere it is a good language for serialization and multiplatform exchange. A use of XML that makes me seriously sick is XML as configuration file. For anything beyond simple parameters XML files are simply too verbose and have such a low ration informatio/noise that they become nightmarish (ex: most Java application servers hell). Please say no to XML configs !

YAML fits well between those too : as a light serialization language or for complex configurations, it is quite simple to parse (simpler than XML at least) and can represent complex structures very lisibly.

Using Perl code as configuration has the problem of executable code in config file which can induce tricky security problem and is at least more complicated to securize system (executable code on noexec partitions ?). Perl as data format, well … do you want to execute code coming from an external program in yours ?

Anyway thanks to superdoc for his helpful post (I did exact the same misreading …).