title: Best Practice for Using Java System Properties
body: <p>Our code uses a lot of system properties eg, 'java.io.tmpdir', 'user.home', 'user.name' etc. We do not have any constants defined for these anywhere (and neither does java I think) or any other clever thing for dealing with them so they are in plain text littered throughout the code.</p>
  
  <pre><code>String tempFolderPath = System.getProperty("java.io.tmpdir");
  </code></pre>
  
  <p>How is everyone using system properties?</p>