title: Should short, simple functions be functions at all?
body: <p><strong>Let's take a look at this JavaScript function:</strong> </p>
  
  <pre><code>function setDivId(div, id) {
          div.id = id;
          return div;
      }
  </code></pre>
  
  <ul>
  <li>Would I lose any performance by encapsulating something this short? </li>
  <li>Would I be better off writing <em>div.id = something;</em> in the right context as a one-liner?</li>
  <li>Is there any point of encapsulating a function, if the smaller,  lower-level functions (that make up the larger function) are unlikely to be used again?</li>
  <li>Should functions always be encapsulated? What's an example of when a function shouldn't be broken down (if it can be)?</li>
  </ul>