Re: Representing variables
On 8:03 01/11/2006 Janice Gelb <janice -dot- gelb -at- sun -dot- com> wrote:
<snip>
Some quick examples: underscores are used for<snip>
reserved variables and commands in Tcl, for
example, auto_load. In UNIX, they're used in
command and file names, and in Java, they're
required as a suffix for private class variables.
Janice, as a programmer hanging round on the list to pick up some pointers
I can tell you from experience that private class variables do NOT require
an underscore suffix. I think you will find that the underscore is used to
indicate a private class variable or is part of the internal Java variable
set, not something your day to day programmer will encounter as a
requirement for their private class variable names.
From http://java.sun.com/docs/books/tutorial/java/nutsandbolts/variables.html
If your variable stores a constant value, such as static
final int NUM_GEARS = 6, the convention changes slightly,
capitalizing every letter and separating subsequent words
with the underscore character. By convention, the underscore
character is never used elsewhere.
-- Janice
***********************************************************
Janice Gelb | The only connection Sun has with
janice -dot- gelb -at- sun -dot- com | this message is the return address
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
WebWorks ePublisher Pro for Word features support for every major Help format plus PDF, HTML and more. Flexible, precise, and efficient content delivery. Try it today! http://www.webworks.com/techwr-l
Easily create HTML or Microsoft Word content and convert to any popular Help file format or printed documentation. Learn more at http://www.DocToHelp.com/TechwrlList
---
You are currently subscribed to TECHWR-L as archive -at- infoinfocus -dot- com -dot-
To unsubscribe send a blank email to techwr-l-unsubscribe -at- lists -dot- techwr-l -dot- com
or visit http://lists.techwr-l.com/mailman/options/techwr-l/archive%40infoinfocus.com
To subscribe, send a blank email to techwr-l-join -at- lists -dot- techwr-l -dot- com
Send administrative questions to admin -at- techwr-l -dot- com -dot- Visit
http://www.techwr-l.com/techwhirl/ for more resources and info.
References:
Representing variables: From: Odile Sullivan-Tarazi
Re: Representing variables: From: Janice Gelb
Re: Representing variables: From: Joe Malin
Re: Representing variables: From: Janice Gelb
Previous by Author:
Re: Pet Peeve: Nouns used as Verbs
Next by Author:
RE: Acrobat: Adding E-Mail Hyperlinks
Previous by Thread:
Re: Representing variables
Next by Thread:
Re: Representing variables
Search our Technical Writing Archives & Magazine
Visit TechWhirl's Other Sites
Sponsored Ads