>)</span> <span class="p">{</span>
    <span class="n">drawLine</span><span class="p">();</span>
<span class="p">}</span>

<span class="n">waitForClick</span><span class="p">();</span>

</code></pre></div></div>

<h2 id="function-design">Function design</h2>

<p>A <strong>well-designed function</strong> exhibits properties such as the following:</p>

<ul>
  <li>Performs a single independent, coherent task.</li>
  <li>Does not do too large a share of the work.</li>
  <li>Is not unnecessarily entangled with o