<div dir="ltr">On 30 July 2013 10:35, Mihail Popa <span dir="ltr"><<a href="mailto:mihail.popa@gmail.com" target="_blank">mihail.popa@gmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div><font face="comic sans ms, sans-serif">I think a good principle of taking decisions is comparing the scope of a change to the scope of it's potential impact.</font></div>
<div><font face="comic sans ms, sans-serif">While with 1 the scopes are similar (assembler-only functionality confined to specific instructions), solution 2 exhibits</font></div>
<div><font face="comic sans ms, sans-serif">a pretty large imbalance in this regard (the scope of the change is assembler-only functionality specific to a few instructions,</font></div><div><font face="comic sans ms, sans-serif">the scope of the potential impact is any compiled application).</font></div>
</div></div></blockquote><div></div></div><br></div><div class="gmail_extra">Hi Mihal,</div><div class="gmail_extra"><br></div><div class="gmail_extra">I'll take your paragraph as is, not related to this issue...</div>
<div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">Your principle is to take the shortest, least harmful path in the short term. But if that will take you down the long term path (again) of having to re-factor the code later on (as Jim mentioned), than it's better to re-factor it now, with a simpler, less buggy and more cohesive code.</div>
<div><br></div></div><div class="gmail_extra">My view is that the Occam's razor works better when you take into account short AND long term goals. Failure to understand this is probably why the world governments, corporations and markets are failing right now, and it's not different with code. The sooner you fix things at the source, planning also for long-term behaviour, the easier it'll be to maintain structure amidst change.<br>
</div><div class="gmail_extra"><br></div><div class="gmail_extra">cheers,</div><div class="gmail_extra">--renato</div></div>