[Catalyst] best practice: where to put constants

Tomas Doran bobtfish at bobtfish.net
Thu Jun 4 16:17:27 GMT 2009


Jarom Smith wrote:
> But out of curiosity... in your opinion, what *would* be the "best 
> practice" way of doing what I'm trying to achieve?  (or was your comment 
> "Not sure this is the 'best practice' way of doing what you're trying to 
> achieve" referring to my way of doing things, and your opinion of best 
> practice is the MyApp::Constants thing?)  Yeah, it appears that is what 
> you meant...

No, it was more a note that I have no idea if your solution is the 
correct one for the problem space (DBIC may already have a nicer way of 
solving that - you may want to ask over there), but that is how I 
implement your solution when appropriate.

Cheers
t0m



More information about the Catalyst mailing list