ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
Re: Id vs. ID in SAX
by Walter Underwood other posts by this author
Mar 9 2000 5:15PM messages near this date
Id vs. ID in SAX | Re: Fixing XML-DEV (was RE: State of the art in listserves)
At 09:51 AM 3/9/00 -0800, Elliotte Rusty Harold wrote:
> Since the word ID is capitalized in common usage, it should be
> capitalized in Java names as well. This is similar to how URL is
> captialized in class names like java.net.URL and method names like
> getURL() in the Java core library.

Of course, "ID" and "Id" are rather different things (think
"ego" and "superego").

Sun is inconsistant, with java.net.URL (very early code) and 
javax.servlet.http.HttpUtils (more recent).

Their coding conventions document says "first letter of each
internal word capitalized", which is probably unabiguous, but
could be more explicit about acronyms.

 From http://java.sun.com/docs/codeconv/html/CodeConventions.doc8.html

    Class names should be nouns, in mixed case with the first letter 
    of each internal word capitalized. Try to keep your class names 
    simple and descriptive. Use whole words-avoid acronyms and 
    abbreviations (unless the abbreviation is much more widely used 
    than the long form, such as URL or HTML).

Our libraries use all caps for acronyms.

wunder
--
Walter R. Underwood
Senior Staff Engineer
Infoseek Software
GO Network, part of The Walt Disney Company
wunder@[...].com
http://software.infoseek.com/cce/ (my product)
http://www.best.com/~wunder/
1-408-543-6946


***************************************************************************
This is xml-dev, the mailing list for XML developers.
To unsubscribe, mailto:majordomo@xml.org&BODY=unsubscribe%20xml-dev
List archives are available at http://xml.org/archives/xml-dev/
***************************************************************************
Thread:
Elliotte Rusty Harold
Walter Underwood

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved