title: Naming standards for web development, eg. form fields, css class, javascript variables
body: <p>I work for a company which has multiple websites, all of sites somehow share some kind of common code. Recently I am working on a project to revamp the UI of a particular website, here are some the problems I have faced:</p>
  
  <ol>
  <li><p>I started to "web parts" concept to pull content from different page via ajax. However I have name/id clashes. Eg. the main page has a tag <code>&lt;div id="tmp"&gt;</code>, and the web part that I am pulling over also has a tag <code>&lt;div id="tmp"&gt;</code></p></li>
  <li><p>There are more than 1 guy writing javascripts, sometimes writing library code, sometimes writing page specific code. And we have naming clashes... </p></li>
  </ol>
  
  <p>I was thinking to standardize the naming convention to something like this: global variables will have "global_" prefixes, page specific code should have "[pagename]_" prefixes(however, we will see a lot of clashes for index.html)</p>
  
  <p>Hence I am asking if anyone has a pretty solid standardization to share with?</p>
  
  <p>Thanks in advance.</p>
  
  <p>James</p>