<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: A Simple Audition for Developers</title>
	<atom:link href="http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html</link>
	<description>Hiring technical people and being hired can be difficult, no matter what the economy is doing. Use the tips here to hire better, or find a new job.</description>
	<lastBuildDate>Thu, 17 May 2012 14:01:53 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
	<item>
		<title>By: Karl Meissner</title>
		<link>http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html/comment-page-1#comment-56</link>
		<dc:creator>Karl Meissner</dc:creator>
		<pubDate>Wed, 22 Jun 2005 22:52:53 +0000</pubDate>
		<guid isPermaLink="false">http://jrothman.com/blog/htp/?p=466#comment-56</guid>
		<description>Hi JR.
I spoke to you at SPIN.  Nice talk.
Thanks.
over an hour?!?!ok just make a point, it is a single line of  c code
void cpy( char* d, char* s){ for(;*d = *s; ++d, ++s); }
ingnoring the 3 to 5 easily checked error conditions...which is important since this kind of code was responsible to the buffer overflow attacks awhile back
but over an hour? yeeessh
when I do interviews though I tend to make my questions a lot harder.  I have had people walk out.
I am not being mean.
Its just that there is about a 10x productivity difference between the top %25 of developers and the bottom %25.
here are some hard questions
given two dates(day, month,year), how many days are there between them
sort a list of numbers.  The list is larger then can fit in ram
implement a binary search on a list of integers
implement the game Scrabble...
but these are too hard for phone screen.  Any good ideas for a quick phone screen questions?
The other area I was looking to improve was easy ways of figuring out teamwork, good people skills, chemistry...not sure it can be tested
other then by trotting the canidate out in front of the other team members... a lot of work that way though.
Karl</description>
		<content:encoded><![CDATA[<p>Hi JR.<br />
I spoke to you at SPIN.  Nice talk.<br />
Thanks.<br />
over an hour?!?!ok just make a point, it is a single line of  c code<br />
void cpy( char* d, char* s){ for(;*d = *s; ++d, ++s); }<br />
ingnoring the 3 to 5 easily checked error conditions&#8230;which is important since this kind of code was responsible to the buffer overflow attacks awhile back<br />
but over an hour? yeeessh<br />
when I do interviews though I tend to make my questions a lot harder.  I have had people walk out.<br />
I am not being mean.<br />
Its just that there is about a 10x productivity difference between the top %25 of developers and the bottom %25.<br />
here are some hard questions<br />
given two dates(day, month,year), how many days are there between them<br />
sort a list of numbers.  The list is larger then can fit in ram<br />
implement a binary search on a list of integers<br />
implement the game Scrabble&#8230;<br />
but these are too hard for phone screen.  Any good ideas for a quick phone screen questions?<br />
The other area I was looking to improve was easy ways of figuring out teamwork, good people skills, chemistry&#8230;not sure it can be tested<br />
other then by trotting the canidate out in front of the other team members&#8230; a lot of work that way though.<br />
Karl</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miles Barr</title>
		<link>http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html/comment-page-1#comment-62</link>
		<dc:creator>Miles Barr</dc:creator>
		<pubDate>Mon, 13 Jun 2005 14:24:01 +0000</pubDate>
		<guid isPermaLink="false">http://jrothman.com/blog/htp/?p=466#comment-62</guid>
		<description>Jason I agree there are several potential ways to do this in Java but I don&#039;t want to force the developer to come up with solutions that would otherwise fail a code review. In Java you shouldn&#039;t copy strings, just pass the same reference around. If I saw any of those snippets in actual production code, I would be concerned about the developer&#039;s understanding of strings in Java.
A spin on the question would be to present several string copy solutions and ask them to say which one is best, but then it becomes a bit of a trick question.
A problem I&#039;ve had coming up with short, yet potentially deep, questions in Java is the amount of dependency on libraries. Every programming question in Java comes down to what library you choose to use, the trick is not to turn the question into a rote-memorization of the APIs.</description>
		<content:encoded><![CDATA[<p>Jason I agree there are several potential ways to do this in Java but I don&#8217;t want to force the developer to come up with solutions that would otherwise fail a code review. In Java you shouldn&#8217;t copy strings, just pass the same reference around. If I saw any of those snippets in actual production code, I would be concerned about the developer&#8217;s understanding of strings in Java.<br />
A spin on the question would be to present several string copy solutions and ask them to say which one is best, but then it becomes a bit of a trick question.<br />
A problem I&#8217;ve had coming up with short, yet potentially deep, questions in Java is the amount of dependency on libraries. Every programming question in Java comes down to what library you choose to use, the trick is not to turn the question into a rote-memorization of the APIs.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zorkerman</title>
		<link>http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html/comment-page-1#comment-57</link>
		<dc:creator>Zorkerman</dc:creator>
		<pubDate>Thu, 09 Jun 2005 23:59:56 +0000</pubDate>
		<guid isPermaLink="false">http://jrothman.com/blog/htp/?p=466#comment-57</guid>
		<description>I had an interview when I was asked in java to write on a piece of paper the &quot;hello, world&quot; program in java.  I responded with the &quot;Why?&quot; question as well, and the interviewer said that many appliants cannot write it without and IDE.
I offered to try and throw in some complexity for complexities sake just so I could show off a little, but she just wanted to see the program.
Of course the Big O notation part didn&#039;t go over so well. :)</description>
		<content:encoded><![CDATA[<p>I had an interview when I was asked in java to write on a piece of paper the &#8220;hello, world&#8221; program in java.  I responded with the &#8220;Why?&#8221; question as well, and the interviewer said that many appliants cannot write it without and IDE.<br />
I offered to try and throw in some complexity for complexities sake just so I could show off a little, but she just wanted to see the program.<br />
Of course the Big O notation part didn&#8217;t go over so well. <img src='http://www.jrothman.com/blog/htp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Deepak Surti</title>
		<link>http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html/comment-page-1#comment-60</link>
		<dc:creator>Deepak Surti</dc:creator>
		<pubDate>Tue, 07 Jun 2005 23:35:00 +0000</pubDate>
		<guid isPermaLink="false">http://jrothman.com/blog/htp/?p=466#comment-60</guid>
		<description>I think one more thing that needs to be added is the &quot;ability to design with the langugage&quot;. Questions like string-copy are great to find out if he can work with the langugae. Next should be if one can design with the language?
Ex design scenario::In our organizaion sales managers are given targets under different goal heads. At the end of every month they do submit the actuals vis a vis the expected.
Tell me how will you implement this feature : &quot;calculating monthly targets&quot; in say::java, ruby,..c# whatever?
Answers are illumintating. :-)</description>
		<content:encoded><![CDATA[<p>I think one more thing that needs to be added is the &#8220;ability to design with the langugage&#8221;. Questions like string-copy are great to find out if he can work with the langugae. Next should be if one can design with the language?<br />
Ex design scenario::In our organizaion sales managers are given targets under different goal heads. At the end of every month they do submit the actuals vis a vis the expected.<br />
Tell me how will you implement this feature : &#8220;calculating monthly targets&#8221; in say::java, ruby,..c# whatever?<br />
Answers are illumintating. <img src='http://www.jrothman.com/blog/htp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html/comment-page-1#comment-59</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Tue, 07 Jun 2005 18:32:05 +0000</pubDate>
		<guid isPermaLink="false">http://jrothman.com/blog/htp/?p=466#comment-59</guid>
		<description>I think it&#039;s a great Java question --  look at all the potential solutions Miles came up with.
The fact that candidates get an hour to work on this makes me feel like a genius.  :-)</description>
		<content:encoded><![CDATA[<p>I think it&#8217;s a great Java question &#8212;  look at all the potential solutions Miles came up with.<br />
The fact that candidates get an hour to work on this makes me feel like a genius.  <img src='http://www.jrothman.com/blog/htp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Faisal N. Jawdat</title>
		<link>http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html/comment-page-1#comment-61</link>
		<dc:creator>Faisal N. Jawdat</dc:creator>
		<pubDate>Tue, 07 Jun 2005 17:24:14 +0000</pubDate>
		<guid isPermaLink="false">http://jrothman.com/blog/htp/?p=466#comment-61</guid>
		<description>I wonder how much of the success of this question depends on the language.  In C this is (or should be) easy.  In Perl you might get into some functions that a lot of people spend their entire professional lives never touching (substr?).</description>
		<content:encoded><![CDATA[<p>I wonder how much of the success of this question depends on the language.  In C this is (or should be) easy.  In Perl you might get into some functions that a lot of people spend their entire professional lives never touching (substr?).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xuemin Guan</title>
		<link>http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html/comment-page-1#comment-63</link>
		<dc:creator>Xuemin Guan</dc:creator>
		<pubDate>Tue, 07 Jun 2005 14:52:30 +0000</pubDate>
		<guid isPermaLink="false">http://jrothman.com/blog/htp/?p=466#comment-63</guid>
		<description>Spot on!</description>
		<content:encoded><![CDATA[<p>Spot on!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Miles Barr</title>
		<link>http://www.jrothman.com/blog/htp/2005/06/a-simple-audition-for-developers.html/comment-page-1#comment-58</link>
		<dc:creator>Miles Barr</dc:creator>
		<pubDate>Tue, 07 Jun 2005 14:47:44 +0000</pubDate>
		<guid isPermaLink="false">http://jrothman.com/blog/htp/?p=466#comment-58</guid>
		<description>I like the idea of a developer audition as part of the interview process. The String-Copy example has a nice balance of complexity and pit falls against time. But it is a very C style question and doesn&#039;t really make sense for languages where strings are a first class object. e.g. in Java you wouldn&#039;t copy a string because they are immutable, so it would be silly to make a copy. But if you had to make a copy you could do:
String original = &quot;original&quot;;
String copy = new String(original);
or a bit more perverse
int len = original.length();
char[] copyBuffer = new char[len];
for (int i = 0; i &lt; len; i++) {
  copyBuffer[i] = original.charAt(i);
}
String copy = new String(copyBuffer);
or
String copy = String.copyValueOf(copyBuffer);
or course this is wrong because it will throw an exception:
String copy = original.clone();
But for me the correct answer for write a string copy in Java is, there is no need because strings in Java are immutable. Which brings me to my question, have you come across any similar questions for Java that would be suitable for an interview?</description>
		<content:encoded><![CDATA[<p>I like the idea of a developer audition as part of the interview process. The String-Copy example has a nice balance of complexity and pit falls against time. But it is a very C style question and doesn&#8217;t really make sense for languages where strings are a first class object. e.g. in Java you wouldn&#8217;t copy a string because they are immutable, so it would be silly to make a copy. But if you had to make a copy you could do:<br />
String original = &#8220;original&#8221;;<br />
String copy = new String(original);<br />
or a bit more perverse<br />
int len = original.length();<br />
char[] copyBuffer = new char[len];<br />
for (int i = 0; i < len; i++) {<br />
  copyBuffer[i] = original.charAt(i);<br />
}<br />
String copy = new String(copyBuffer);<br />
or<br />
String copy = String.copyValueOf(copyBuffer);<br />
or course this is wrong because it will throw an exception:<br />
String copy = original.clone();<br />
But for me the correct answer for write a string copy in Java is, there is no need because strings in Java are immutable. Which brings me to my question, have you come across any similar questions for Java that would be suitable for an interview?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

