by geuis · 18y ago · 0 comments
To talk about the issue of an interviewee not being able to write out code with pencil and paper: Do you paint with crayons?
If you are an amazing digital artist in Photoshop, say Burt Monroy for example, then you should be able to paint with crayons right? If you work for Lucasfilms as a top-tier 3D artist who works in Maya, shouldn't you be able to chip Michelangelo out of stone then?
What most NON-CODERS, which I am assuming includes you, do not realize is that a programmer's brain is wired to work in a certain environment. We have learned for years how to code in particular ways, whether via a straight text editor(Textpad for me!) or an integrated IDE(Eclipse or Visual Studio for example).
So you take someone who's already stressing about making a good impression during an interview and then ask them to write down code on a piece of paper. That's the absolute worst thing you can do. You're asking the person to use a different part of their brain to tackle a problem that hasn't been trained for that job.
Put the person in front of a computer, such as a laptop in the interview room put there for specifically this purpose, and THEN give them a problem to solve.
If the person still can't pull code out of their ass at this point, then you're right. They're morons. Otherwise, you will be surprised at what some of these people can do that you've looked over.
For years I have had candidates code with pencil and paper and never had a single objection.
The purpose of the coding exercise was never to see what they would come up with or how well it ran, it was to learn more about them in the discussion afterward. And I have found that this was best accomplished with a big sheet of paper and 2 pens, (one mine, one theirs). I imagine a white board would work as well, but for 2 people it's not necessary.
I also found that they were more relaxed working off-line, where nothing could be judged or examined. It was just me and them and something specific to talk about. That's all.
The blogger is not talking about major pieces of code, he's talking about fundamentals. So, yes, the programmer should be able to do it on paper. And I bet if you ask a Lucas Arts 3D artist to draw on paper a basic shape, he/she will blow you away with what they produce.
You need a better metaphor. I cannot imagine a painter who, when handed a crayon and told to draw something, couldn't at least produce a simple sketch. I just can't think of a single example.
Good cooks can imagine flavors and guess at timing and ingredients for food they've never tasted (much less prepared) just as good painters can visualize a work in their head before ever putting brush to paper.
Programmers should be able to work the same way.
I do interviews on occasion and I usually ask for some source on the whiteboard. Generally I only do that with people interviewing for junior positions, though.
I usually ask for a quick implementation of the fibonacci algo in their favorite language. I also tell them that sloppy is OK - so brace placements, etc are not relevant.
I hardly think it's too much to ask for a candidate to implement a simple, standard algo in their language of choice on paper/whiteboard.
PHP programmers tend to do very poorly in this area, unless they are programmers who also do PHP. The problem to me seems to be that the PHP environment doesn't encourage experimentation with algorithms, data structures and low-level optimization. Add to that the more-or-less haphazard manner in which most PHP code is organized and you've got a scripter who'll freeze when asked to do a piece of mathematics on paper in their language. Also, most PHP programmers tend to be framework-users. And while using frameworks is good, using frameworks without automating elements of your problem domain (by creating your own little framework-on-a-framework) is generally bad because you end up repeating yourself a lot.
PHP is not a bad language, but it's a very, very bad language to have as your sole programming experience.
It makes me also ask the question, are people who use interpreted languages really programmers? The code I write is conceptually programming, but I don't think in terms of how its compiled, but rather how efficiently its interpreted and ran by the web server.
Writing code without being in front of a computer is different in that you don't expect your napkin application to run and you won't list include files or even real functions in outlining a potential plan, does this detract from the usefulness of the napkin? No I wouldn't think so as it gives your brain a predetermined map to try and follow when finding the real functions to use or loops to create when solving an outlined problem.
a potential hire better be able to show me an approximation with a bowl of cheerios it's such a simple task.