Is writing dead code useful?
<p>Do you find writing dead code useful?</p>

<p>Some says "If you have 2 logic to do some operation then instead of making other logic code commented or removing code make it dead code as it will not affect the operation."</p>

<p>Example:-</p>

<pre><code>if(true){
    // logic - 1
} else {
    // logic - 2  // dead code
}
</code></pre>

<p>Is it true?</p>

<hr>

<p>I usually do not write dead codes instead I just remove the second logic. </p>
