Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #1325

Re: Vocabulary Question

From Lew <lewbloch@gmail.com>
Newsgroups comp.lang.java.help
Subject Re: Vocabulary Question
Date 2011-11-11 07:21 -0800
Organization http://groups.google.com
Message-ID <13471324.213.1321024887666.JavaMail.geo-discussion-forums@prnv30> (permalink)
References <ir5qb712iokk1pqmu1h4hcesgmskc1gnmb@4ax.com> <8i6qb7pr040cq5idfq8bkb9ea1fi1vs91f@4ax.com>

Show all headers | View raw


Roedy Green wrote:
>> If you read the entire contents of a file into RAM for processing, is
>> there a simple word to describe the copy of it in RAM?  Something you
>> would use consistently in variable names to represent the original
>> String? 
> 
> how about contents or fileContents?  Contents could also refer to a
> Collection.

Name it anything reasonable. 

According to the Java conventions and best practices, names should reflect the algorithmic purpose in the context of the logical model, not implementation specifics.  Why do you pull the file in to memory?  Does the algorithm care that the data came from a file?  If not, why would 'File' appear as a name part?

What is the purpose of the data?  Is it a widget configuration?  Then perhaps it should be 'String widgetConfiguration;'.

-- 
Lew

Back to comp.lang.java.help | Previous | NextPrevious in thread | Find similar


Thread

Vocabulary Question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-11 04:40 -0800
  Re: Vocabulary Question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-11 04:42 -0800
  Re: Vocabulary Question Eric Sosman <esosman@ieee-dot-org.invalid> - 2011-11-11 07:47 -0500
    Re: Vocabulary Question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-12 09:23 -0800
      Re: Vocabulary Question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-13 03:48 -0800
  Re: Vocabulary Question Roedy Green <see_website@mindprod.com.invalid> - 2011-11-11 04:51 -0800
    Re: Vocabulary Question Lew <lewbloch@gmail.com> - 2011-11-11 07:21 -0800

csiph-web