That is a great question.&nbsp; And there's probably no one<br>
correct answer.&nbsp; My answer would be working code,<br>
since optimized code that doesn't work and correct<br>
code that doesn't work has less business value than<br>
working code.<br><span class="sg">
<br>
JD</span><div><span class="e" id="q_108f8a47218fc010_2"><br><br><div><span class="gmail_quote">On 1/23/06, <b class="gmail_sendername">Randy Rue</b> &lt;<a href="mailto:rrue@fhcrc.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
rrue@fhcrc.org</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Great question, and of course the short answer is &quot;It depends.&quot;<br><br>Years before I ever heard the project management term &quot;triple<br>constraint&quot; a contractor friend of mine (contractor like hammer and
<br>nails and a white pickup truck, not like dev-for-hire) asked me if I<br>wanted the job done &quot;fast, cheap, or right, pick any two.&quot; I've never<br>heard the concept explained better since.<br><br>So the answer to &quot;which comes first&quot; depends on the situation and the
<br>priorities of the consumer. Is this app a heavy resource user? Tune it.<br>Is it expected to be in use for a long time and maintained by baboons?<br>Make it correct, avoid cryptic shortcuts, and comment the bejeezus out
<br>of it. Are we all fired if it's not running by noon? Fix it now!<br><br>Assuming no constraints? Make it correct, even if it means getting not<br>it working as quickly. Get it working. Then see about tuning it.<br><br>

My unsolicited $0.02.<br><br>Randy Rue<br><br><br><br>Fred Morris wrote:<br>&nbsp;&nbsp;&gt; The interview question I haven't been asked lately...<br>&gt;<br>&gt; Which comes first:<br>&gt;<br>&gt; * optimization<br>&gt; * correctness
<br>&gt; * working code<br>&gt;<br>&gt;<br>&gt; At 11:04 PM 1/21/06, Creede Lambard wrote:<br>&gt;<br>&gt;&gt;Come up with a good way to reverse a string. I get asked that about two out<br>&gt;&gt;of three interviews, it seems like. Oh, and no one seems to like
<br>&gt;&gt;<br>&gt;&gt; print join ('', reverse( split (//, $string)));<br>&gt;&gt;<br>&gt;&gt;which seems unfair to me. I mean, if they're going to expect me to use Perl,<br>&gt;&gt;I should be able to use Perl, not use Perl in a particular way they mandate
<br>&gt;&gt;(they seem to always want something that uses substr). [...]<br>&gt;<br>&gt;<br>&gt; --<br>&gt;<br>&gt; Fred Morris<br>&gt;<br>&gt;<br>&gt; _____________________________________________________________<br>&gt; Seattle Perl Users Group Mailing List
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;POST TO: <a href="mailto:spug-list@pm.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">spug-list@pm.org</a><br>&gt; SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://mail.pm.org/mailman/listinfo/spug-list</a><br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; MEETINGS: 3rd Tuesdays
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; WEB PAGE: <a href="http://seattleperl.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://seattleperl.org/</a><br>_____________________________________________________________
<br>Seattle Perl Users Group Mailing List<br>&nbsp;&nbsp;&nbsp;&nbsp; POST TO: <a href="mailto:spug-list@pm.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
spug-list@pm.org</a><br>SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://mail.pm.org/mailman/listinfo/spug-list</a><br>&nbsp;&nbsp;&nbsp;&nbsp;MEETINGS: 3rd Tuesdays
<br>&nbsp;&nbsp;&nbsp;&nbsp;WEB PAGE: <a href="http://seattleperl.org/" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">
http://seattleperl.org/</a><br></blockquote></div><br>

</span></div>