span> <span class="n">data</span><span class="p">)</span> <span class="p">{</span>
    <span class="p">...</span>
<span class="p">}</span>

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

<h2 id="unify-common-code-avoid-redundancy">Unify common code, avoid redundancy</h2>

<p>When drafting code, you may find that you repeat yourself or copy/paste blocks of code when you need to repeately perform the same/similar tasks.  Unifying that repeated code into one passage simplifies your design and means only one piece of code to write