title: What type of variable names do you use to compare two objects
body: <p>I do a lot of data analysis scripting, comparing two objects or strings to determine differences or come up with gaps that need to be filled.<br>
  When you're in a loop, comparing object a to object b, do you have a preferred coding standard that makes sense (i.e., it is self-documenting) and can travel nicely to other code?  Or are variable names irrelevant in this type of code:</p>
  
  <pre><code>for (String a : TreeMapvar) {  
      // Read b from data source  
      if (a.equals(b)) {  
          // Update a  
      }  else {
          TreeMapvar.add(b);
  }
  </code></pre>
  
  <p>A different example:</p>
  
  <pre><code>TreeMap&lt;String, MyObject&gt; TreeMapvar = new TreeMap&lt;String, Object&gt;();
  File f = "Somefile";
  // Open the file with bufferedReader br  
  while ((line=br.readLine)!=null)) {  
      //insert code parse line to get object a  
      if (TreeMapvar.containsKey(a)) {  
          if (TreeMapvar.get(a).somefield.equals(a.somefied)) {  
              //insert code to update a  
          } else {  
              //insert code to insert new object  
          }  
       }  
  }
  </code></pre>