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

Well, my original question was why you prefer a YAML config over a perl one, or something simpler like an INI file.

Replies are listed 'Best First'.
Re^6: An Idiot's Guide to YAML
by clinton (Priest) on Jun 09, 2007 at 14:46 UTC
    Sorry :)

    YAML is more concise than perl, and more powerful than INI.

    I realise that people are more comfortable with the poison they know, but I picked up YAML quickly, and fell in love with it quickly. For me, it just makes sense. I assumed it would be the same for others, so I'm always surprised when people don't see it the same way.

    Clint

Re^6: An Idiot's Guide to YAML
by TGI (Parson) on Jun 11, 2007 at 20:46 UTC

    INI is great until you need to store anything with more than minimal structure. Lists and tables can be hacked in, but are not really supported.

    I've had to write code like this:

    my $param = get_ini_param('Foo','Bar'); my @param1_params = split /,/, $param; # repeat for 37 different parameters with different parsing requiremen +ts, slightly different structure.
    too many times. In the end I wind up rolling my own text serialization library just to use INI format.

    YAML solves this problem very nicely and, IME, it is easy to edit by hand.


    TGI says moo