note
talexb
<p>The company I work for has a standard Perl question that they ask developers. And when they asked me this question, I quickly dashed off a solution, which fell apart as soon as they asked me to explain it (awkward). I dropped that approach and did it another way, and was able to prove or explain that it would work. Phew.</p>
<p>I imagine that this question has leaked out, and there may have been applicants who have written the perfect response based on that advance knowledge. <i>I seriously doubt that advance knowledge helped them.</i> Any further exploration into Perl knowledge would clearly have left them high and dry.</p>
<p>I don't believe that software development is in a place now where you can 'fake it till you make it' -- you have to be able to have decent chops and be able to hit the ground running. You have to eat, live and breathe software.</p>
<ul>
<p>Aside: I interviewed with Microsoft back in 1987, and the first of two interviews went great -- while the interviewer and I were waiting for the elevator to go back to the lobby for the second meeting, we were discussing the intriguing challenge of scheduling elevators, and he asked me what analog to that scheduling there might in computer systems. Without really pausing to think, I said, 'the position of a disk drive's head'. Yup.</p>
<p>The second interviewer and I just didn't click, and that was the end of that.</p>
</ul>
<p>Cheating on interview questions is going to be a waste of time for both the underqualified employee and for the frustrated employer who has to downgrade and/or terminate the employee. That's not a good outcome.</p>
<p>But to get back to the original interview question -- if you're a developer, you should be familiar enough with binary, octal, decimal and hex, and with numbers in general, that you can do all sorts of cool tricks with numbers.
<ul>
<li><strike>Pounds to kilograms</strike>Kilograms to pounds? (1) Divide by 2.2 by halving then taking off ten percent. Other way? Add ten percent, then double it.</li>
<li>Figure out a 15% tip? Take ten percent, then add half.</li>
<li>Hex math? Jut the same as decimal math, except the ten times table is 2 1/2 times larger. (Extra challenge: try extracting the square root of a number in hex.)</li>
<li>Dividing by 2 without using the divide function? You should really know that one, dear hearts.</li>
</ul>
</p>
<div class="pmsig"><div class="pmsig-131279">
<p>Alex / [talexb] / Toronto</p>
<p><small>"<a href="http://www.groklaw.net">Groklaw</a> is the open-source mentality applied to legal research" ~ Linus Torvalds</small></p>
</div></div>
<p><small>1. Thanks to [abell], I have finally fixed this pounds/kilograms mixup after two weeks. Can I blame dyslexia? I can? Sorry, my mistake.</small></p>
792088
792088