title: Dealing with combining cases & duplicate cases in switch statements
body: <p>Is it okay to combine <code>cases</code> that share assignments and repeat the <code>case</code> for assignments that are not shared, or is it preferred to just keep each separated?</p>
  
  <hr>
  
  <p><em>To illustrate with a simple example.. <code>case 0</code> and <code>180</code> both include <code>w = 330</code> so they have been combined; the value assigned to <code>x</code> is different for each so they are repeated to do the <code>x</code> assignment.</em></p>
  
  <pre><code>switch(window.orientation) {
      case   0:
      case 180:
          w = 330;
          //break
      case   0:
          x = '-180px';
          //break
      case -90:
      case  90:
          w = 480;
          x = '0';
          break;
      case 180:
          x = '-80px';
          break;
  }
  </code></pre>