﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>Ayende Rahien commented on If Program I Can't, Programmer Am I?</title><description>If only...
  
I would have more success with them,  at least they would know a mountain from a chair
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment18</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment18</guid><pubDate>Fri, 09 Mar 2007 17:36:37 GMT</pubDate></item><item><title>Robert commented on If Program I Can't, Programmer Am I?</title><description>Are you sure you are not interviewing Geography students by mistake?
  
  
It amuses me how some people get really touchy about asking programmers to program in an interview. Like you say the objective of the test is to pick out the bad ones, not the good. Anyone can lie on a CV.
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment17</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment17</guid><pubDate>Fri, 09 Mar 2007 17:32:51 GMT</pubDate></item><item><title>hmm commented on If Program I Can't, Programmer Am I?</title><description>Could I use Rebol language?: 
  
reversed-string: head reverse string-to-reverse
  
or if I don't want to modify original:
  
reversed-string: head reverse copy string-to-reverse
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment16</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment16</guid><pubDate>Sat, 03 Mar 2007 09:41:25 GMT</pubDate></item><item><title>Ayende Rahien commented on If Program I Can't, Programmer Am I?</title><description>@Nate,
  
No, these type of questions won't find good programmers.
  
They _would_ find the really bad ones, and that is there purposes, to screen the ones that aren't really programmers from those that can make one end of the compiler from the other.
  
  
Frankly, I would have much harder time explaining abstract concepts than writing a bit of code to do such a simple task.
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment15</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment15</guid><pubDate>Fri, 02 Mar 2007 20:57:15 GMT</pubDate></item><item><title>Nate commented on If Program I Can't, Programmer Am I?</title><description>You people are foolish if you think that such questions help you find skilled programmers or good thinkers
  
Look at some of the code they have written in the past. Discuss concepts. Dumb ass pop quizzes are useless and if the person is nervous, then you have lost a potentially valuable asset.
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment14</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment14</guid><pubDate>Fri, 02 Mar 2007 20:37:42 GMT</pubDate></item><item><title>Bill Pierce commented on If Program I Can't, Programmer Am I?</title><description>Was curious how M$ would reverse a string in .Net 1.1.  This comes out of Microsoft.VisualBasic.Strings.StrReverse:
  
  
string reverseThis = "test";
  
char[] array = reverseThis.ToCharArray();
  
Array.Reverse(array);
  
string reversed = new string(array);
  
  
Realize the goal is not to find out if the candidate knows how to reverse a string.  I can't recall a business requirement in a system I have worked on that said we need to reverse the user's input.  I would almost prefer that the candidate DID NOT know how to reverse a string so they can demonstrate their thought process for solving a problem.
  
  
  
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment13</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment13</guid><pubDate>Wed, 28 Feb 2007 19:40:37 GMT</pubDate></item><item><title>Ayende Rahien commented on If Program I Can't, Programmer Am I?</title><description>I wish I were kidding, I have met people that are supposed to be "veteran professionals" that can't do it. You can probably guess that they aren't on my team, nor employed at my company in any development capacity.
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment12</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment12</guid><pubDate>Wed, 28 Feb 2007 18:49:59 GMT</pubDate></item><item><title>Oren Ellenbogen commented on If Program I Can't, Programmer Am I?</title><description>Man, you are killing me :). 
  
If she\he can't reverse a string or capialize every second character, she\he in the wrong business. This is a no-brainer question. We are dealing with much more complicated scenarios on a daily basis so if she\he can not give me an answer within 2 minutes and smile("is this question for real?! he's kidding.. right?) while they are writing it, I don't want her\him on my team. 
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment11</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment11</guid><pubDate>Wed, 28 Feb 2007 18:27:47 GMT</pubDate></item><item><title>Harald commented on If Program I Can't, Programmer Am I?</title><description>LOL, that remembers me on an interview I had back then (where I was the Interviewee) where I was asked how to swap the contents of two registers without allocating a third one for buffering. The interviewer mentioned, that it took him quite a while to figure out how to do that and somehow he didn't even expect me to answer.
  
When I came up with a solution he didn't believe me and tried arguing with me why my proposal won't work. Luckily I got support from a second guy attending the interview, though listening to his arguments a bit longer would definitely have been funny.
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment10</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment10</guid><pubDate>Wed, 28 Feb 2007 17:17:57 GMT</pubDate></item><item><title>Ayende Rahien commented on If Program I Can't, Programmer Am I?</title><description>Cool information, when Linq will be out, it would be the time to the next challenge, capitalize every second character.
  
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment9</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment9</guid><pubDate>Wed, 28 Feb 2007 12:49:39 GMT</pubDate></item><item><title>Alex Henderson commented on If Program I Can't, Programmer Am I?</title><description>Sorry, the Reverse comes from System.Query as an Extension Method ;o) (because a string is IEnumerable&lt;char&gt;)
  
  
It's a terrible terrible way to do it... I can only imagine the Reverse collects all characters internally as a stack and then feeds them back out again via a yield in reverse order (unless it's optimised for string types) - and then I imagine they probably get collected into yet another list before being converted into an array... lots of needless memory allocation.
  
  
Would need to fire up reflector and have a look to be sure of course.
  
  
Perhaps once LINQ is in the wild you'll start to have candidates who try it this way because "Reverse" shows up in intelisense for a string.... :P
  
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment8</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment8</guid><pubDate>Wed, 28 Feb 2007 11:08:27 GMT</pubDate></item><item><title>Darius Damalakas commented on If Program I Can't, Programmer Am I?</title><description>Last time i gave a candidate to write a Fibonacci queue.
  
  
It took him 15 minutes to write 5 simple statements, all of which where assignment. And then he started me exaplining the algorithm orally, drawing some things on the whiteboards and telling me that we need to use he some simple loop.
  
  
After i repeatedly asked him write down the solution, he gave up.
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment7</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment7</guid><pubDate>Wed, 28 Feb 2007 10:19:00 GMT</pubDate></item><item><title>Ayende Rahien commented on If Program I Can't, Programmer Am I?</title><description>Alex, I had to use brace matching to figure it out, but string doesn't have a Reverse() method on it.
  
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment6</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment6</guid><pubDate>Wed, 28 Feb 2007 09:24:57 GMT</pubDate></item><item><title>Alex Henderson commented on If Program I Can't, Programmer Am I?</title><description>Yeah, it's surprising how many coders still go to work to eat their lunch... surely there are other industries to get into (for more money) if your really not passionate about it?!!
  
  
string reversed = new string(((args ?? new string[] {""})[0] ?? "").Reverse().ToArray());
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment5</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment5</guid><pubDate>Wed, 28 Feb 2007 09:20:00 GMT</pubDate></item><item><title>Ayende Rahien commented on If Program I Can't, Programmer Am I?</title><description>@Luke,
  
Where do I find this people?
  
Trying hiring people that directly from the market, (meaning not through friends and such).
  
Even when getting screened candidates, I run into those depressingly often.
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment4</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment4</guid><pubDate>Wed, 28 Feb 2007 07:22:53 GMT</pubDate></item><item><title>Ayende Rahien commented on If Program I Can't, Programmer Am I?</title><description>Ah, you already got the first hurdle. I saw some people getting stack on THAT for a while.
  
The kept trying to reverse the string using the args variable.
  
I meant reversing the string in args[0].
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment3</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment3</guid><pubDate>Wed, 28 Feb 2007 07:17:30 GMT</pubDate></item><item><title>Luke Breuer commented on If Program I Can't, Programmer Am I?</title><description>@shawn: Confusing questions can be a good thing.  Just as you picked up upon the ambiguity, so should an interviewee.
  
  
@Ayende: Where do you find these people?  I'm not saying that I had a whole lot of faith in the human race already, but this is just disheartening.  At least this gives me a competitive edge...
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment2</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment2</guid><pubDate>Wed, 28 Feb 2007 02:16:37 GMT</pubDate></item><item><title>shawn hinsey commented on If Program I Can't, Programmer Am I?</title><description>That question is kind of confusing. Do you mean to print the contents of the args array in reverse, the contents of an arbitrary index of the args array in reverse, or maybe the contents of every index in the array in reverse? 
</description><link>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment1</link><guid>http://ayende.com/2148/if-program-i-cant-programmer-am-i#comment1</guid><pubDate>Wed, 28 Feb 2007 01:22:02 GMT</pubDate></item></channel></rss>