Dave Howorth wrote:
> Brandon Black wrote:
>> I still think its a great place to put meta-info that goes beyond what
>> the DB traditionally knows.
>
> Putting extra information into a data structure 'owned' by another
> component can cause namespace collisions. Better to have a specific
> expansion hook like { private => { your => 'data', goes => 'here' } }, IMHO.
>
>> Putting a "label => 'Street Address'" in the attributes of a column does
>> not violate any kind of separation.
>
> I think this particular example does cross a fundamental separation. I
> agree with Zbyszek: labels are part of the view/presentation, not the
> model. What if you also want your data to be used by Chinese users?And conversly, if it was description => 'This is the street address', which describes what the field holds, them I'm all for it. An odd place to draw the line, but to each their own.
signature.asc
Description: OpenPGP digital signature
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/[email protected]/
