[Catalyst] YAML vs. *

Kieren Diment diment at gmail.com
Sat Jun 10 01:27:12 CEST 2006


I've read most of this thread, and my main concern is this.

With YAML you can do this:

use YAML;
my $href = {
 foo => 'bar'
 baz => 'quoxx'
 $fnord => \@skidoo
}

print Dump $href;

and get a YAML dump of what the config datastructure is supposed to look
like without problem.  This is too useful to discard.  From my cursory
reading of the docs, Config::General doesn't seem to support this.  JSON
probably does, but then looks rather code like to me.   As for XML by
default, well - no thanks, please no.

On 10/06/06, Matt S Trout <dbix-class at trout.me.uk> wrote:
>
> I love YAML as a serialisation format for data transfer, but so far as
> stuff
> like config files that are designed for human write / machine read, I
> personally think it sucks. Massively.
>
> And for hysterical raisins it's currently our default config file formats,
> and
> I see users running into trouble getting their myapp.yml to parse right
> all
> the flipping time. So, I'm wondering if this is just me being a
> YAML-hating
> heretic or if other people are of the same opinion.
>
> A few (IMO) better options -
>
> Config::General -
>
> <View TT>
>    INCLUDE_PATH __path_to('root')__
> </View>
>
> JSON -
>
> {
>    'View::TT': {
>      INCLUDE_PATH: "__path_to('root')__"
>    }
> }
>
> INI-style -
>
> [View::TT]
> INCLUDE_PATH=__path_to('root')__
>
> What do you all think, then? (/me dons asbestos suit, waits for the holy
> war
> to start :)
>
> --
>       Matt S Trout       Offering custom development, consultancy and
> support
>    Technical Director    contracts for Catalyst, DBIx::Class and BAST.
> Contact
> Shadowcat Systems Ltd.  mst (at) shadowcatsystems.co.uk for more
> information
>
> + Help us build a better perl ORM:
> http://dbix-class.shadowcatsystems.co.uk/ +
>
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060610/2450e80b/attachment.htm 


More information about the Catalyst mailing list