Re: [cgiapp] draft version of PSGI::Application and load_tmpl replacement

2012-11-06 Thread Kurt Lidl
On 11/6/2012 12:24 PM, Mark Stosberg wrote:

 * Hash keys for new() must now be upper-case now.

 Ridiculous. Lower case hash keys are the norm throughout Perl.

 Upper case is SHOUTING.

 I agree that lower case hash keys are the norm and upper case hash keys
 are shouting. The choice here weas a nod to compatibility with
 CGI::Application, which internally was case-insensitive, but by
 convention, everyone has been using the upper-case keys.

 I'm open to reconsidering this point as well, as I would prefer
 lower case going forward myself. Perhaps the upper-case support can be
 pushed into a ::Compat transitional module.

I'd vote for lower-casing them, if you're looking for feedback.

-Kurt

#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] draft version of PSGI::Application and load_tmpl replacement

2012-11-06 Thread Mark Stosberg
On 11/06/2012 12:27 PM, Kurt Lidl wrote:
 On 11/6/2012 12:24 PM, Mark Stosberg wrote:
 
 * Hash keys for new() must now be upper-case now.

 Ridiculous. Lower case hash keys are the norm throughout Perl.

 Upper case is SHOUTING.

 I agree that lower case hash keys are the norm and upper case hash keys
 are shouting. The choice here weas a nod to compatibility with
 CGI::Application, which internally was case-insensitive, but by
 convention, everyone has been using the upper-case keys.

 I'm open to reconsidering this point as well, as I would prefer
 lower case going forward myself. Perhaps the upper-case support can be
 pushed into a ::Compat transitional module.
 
 I'd vote for lower-casing them, if you're looking for feedback.

I am looking for feedback. Thanks for the opinion.

   Mark


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] draft version of PSGI::Application and load_tmpl replacement

2012-11-06 Thread Giannis Economou
On 6/11/2012 8:36 μμ, Mark Stosberg wrote:
 On 11/06/2012 12:27 PM, Kurt Lidl wrote:
 On 11/6/2012 12:24 PM, Mark Stosberg wrote:

 * Hash keys for new() must now be upper-case now.
 Ridiculous. Lower case hash keys are the norm throughout Perl.

 Upper case is SHOUTING.
 I agree that lower case hash keys are the norm and upper case hash keys
 are shouting. The choice here weas a nod to compatibility with
 CGI::Application, which internally was case-insensitive, but by
 convention, everyone has been using the upper-case keys.

 I'm open to reconsidering this point as well, as I would prefer
 lower case going forward myself. Perhaps the upper-case support can be
 pushed into a ::Compat transitional module.
 I'd vote for lower-casing them, if you're looking for feedback.
 I am looking for feedback. Thanks for the opinion.

 Mark


Hello...

IMHO, there should be no enforcement. If that was a convention I suggest 
to keep it like this. Conventions play well with TIMTOWTDI, too...
A discussion on the convention would be ok, but I believe that such 
enforcements are not really necessary. Documentation can suggest the 
convention.
This is my opinion, if I'm not missing something...

+1 for the rest of the API changes.

Giannis



#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####




Re: [cgiapp] draft version of PSGI::Application and load_tmpl replacement

2012-11-06 Thread Mark Stosberg
On 11/06/2012 01:55 PM, Giannis Economou wrote:
 On 6/11/2012 8:36 μμ, Mark Stosberg wrote:
 On 11/06/2012 12:27 PM, Kurt Lidl wrote:
 On 11/6/2012 12:24 PM, Mark Stosberg wrote:

 * Hash keys for new() must now be upper-case now.
 Ridiculous. Lower case hash keys are the norm throughout Perl.

 Upper case is SHOUTING.
 I agree that lower case hash keys are the norm and upper case hash keys
 are shouting. The choice here weas a nod to compatibility with
 CGI::Application, which internally was case-insensitive, but by
 convention, everyone has been using the upper-case keys.

 I'm open to reconsidering this point as well, as I would prefer
 lower case going forward myself. Perhaps the upper-case support can be
 pushed into a ::Compat transitional module.
 I'd vote for lower-casing them, if you're looking for feedback.
 I am looking for feedback. Thanks for the opinion.

 Mark

 
 Hello...
 
 IMHO, there should be no enforcement. If that was a convention I suggest 
 to keep it like this. Conventions play well with TIMTOWTDI, too...
 A discussion on the convention would be ok, but I believe that such 
 enforcements are not really necessary. Documentation can suggest the 
 convention.
 This is my opinion, if I'm not missing something...

Thanks for the feedback.

 +1 for the rest of the API changes.

Thanks for the endorsement!

   Mark


#  CGI::Application community mailing list  
####
##  To unsubscribe, or change your message delivery options,  ##
##  visit:  http://www.erlbaum.net/mailman/listinfo/cgiapp##
####
##  Web archive:   http://www.erlbaum.net/pipermail/cgiapp/   ##
##  Wiki:  http://cgiapp.erlbaum.net/ ##
####