logo       

Re: Announce: Template::Plugin::Gravatar (Feedback, code review, comments): msg#00021

Subject: Re: Announce: Template::Plugin::Gravatar (Feedback, code review, comments)
Nik Clayton wrote:
Tom Insam wrote:
On Mon, 2006-03-20 at 10:15 +0000, Simon Wistow wrote:

Couldn't it just use ';' isntead of & or & - no url (un?)escaping needed whatsoever

That's a CGI.pm weirdness, and can't be relied upon. Plus, I'm sure
there will be other characters that need escaping in the url sometimes..

http://www.w3.org/TR/1999/REC-html401-19991224/appendix/notes.html#h-B.2.2
[SNIP]
  We recommend that HTTP server implementors, and in particular, CGI
  implementors support the use of ";" in place of "&" to save authors
  the trouble of escaping "&" characters in this manner.


While it may be a recommended part of a standard, I wouldn't rely on the ';' 
functionality as a default ever. In real life there is the standard, and then 
there is 'actual use', and I think in this case the ';' usage is not 
consistently supported. Of course I'd love it if it did work. We'd finally be 
done with the ampersand dilemma once and for all.



From Tom:
Gosh, isn't that the conclusion we came to last time? (about
Template::Plugin::URL). Poking at my archives, abw decided that the
default separator should be '&', but that there should also be a
variable you can set, and that the default for TT3 should be '&' for
sanity. I believe that doing what the other URL-generating module does
is saner (even if it's wrong) than doing something different.

Yes, we have dealt with this before. However, I think the primary reason with using & was 
so we didn't break anyone's current templates. Given that the plugin is new, using 
"&" would probably be fine since nothing will be broken. (Although, I suppose it 
could be argued that it would be confusing.)

If we wanted to be consistent with the URL plugin then Darren has an interesting idea 
about subclassing the URL plugin for this task. However, it's probably best to do the 
"right thing" from the start, though.

As a side note, I took a look at CPAN and it looks like 0.02 of the module uses 
"&" format now. Perhaps just adding a JOINT (or JOIN or JOINER) global like in 
the new URL plugin would be good. (And maybe a 'joiner' parameter when USEing the new plugin.)



-- Josh


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
boot-loaders.gr...    php.pear.genera...    debugging.valgr...    kde.redhat.user...    text.xml.xsl.ge...    culture.languag...    hardware.microc...    java.servicemix...    redhat.release....    web.zope.plone....    user-groups.lin...    opendarwin.webk...    video.mjpeg.use...    sysutils.bcfg2....    encryption.gpg....    lx-office.devel...    xfree86.forum/2...    mail.mutt.devel...    acpi.devel/2003...    qnx.openqnx.dev...    network.irc.irs...    freebsd.devel.m...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe