commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neil O'Toole <>
Subject RE: [lang] StringEscapeUtils method names
Date Sat, 26 Jul 2003 21:54:41 GMT
It appears that Sun engineers will return to lowercase when there's a
possibility of ambiguous meaning due to sequential uppercase
abbreviations, e.g.


It seems that Sun's pattern is to use uppercase for abbreviations, but
never to run two uppercase abbreviations into each other (the point
that gary was making).

Note also that (as you might expect in a project as big as java) there
are inconsistencies in Sun's naming patterns. Sometimes even standalone
abbreviations are not uppercased, e.g. (though
this is not part of the public API).

I would argue that sequential uppercase abbreviations are unacceptable,
but that case aside it's really a matter of style. But I think that
everyone finds the lowercase names EASIER TO READ AND TO TYPE ;), and
since we (and Sun) abandon the principle of 'abbreviations always
uppercase', let's go with what's easier to use.


--- Gary Gregory <> wrote:
> Hello,
> Personally and within our development group, we like using
> thisMethodNamingConventionEvenForAcronyms, which avoids silly names
> like
> nameThisIBMXMLCICSConverterDooDad, try to parse "IBMXMLCICS", blech!
> Instead
> we use: nameThisIbmXmlCicsConverterDooDad.
> -1 from moi.
> Gary
> -----Original Message-----
> From: Stephen Colebourne [] 
> Sent: Saturday, July 26, 2003 11:53
> To: Jakarta Commons Developers List
> Subject: [lang] StringEscapeUtils method names
> We currently have names such as
> escapeHtml
> escapeXml
> I believe that the Sun guidelines are
> escapeHTML
> escapeXML
> etc.
> Should we change them?
> Stephen
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message