This is something I've been wondering about over the past year, as I've been interviewing:
Why are almost all interview coding tasks taking place using pen and paper rather than using a computer with a text editor or a full IDE? I've only had one opportunity this year to actually type in code.
I can see many disadvantages for pen and paper (or whiteboard)
Handwriting. This is a sore spot for me (takes me ages, I can't read what I write, makes my hand tired, etc.). It is probably also a sore spot for the interviewer who reads it. Having seen enough programmers' handwriting, I don't think that others would win penmanship awards.
Time - Handwriting (especially on a whiteboard) takes longer. Out the door go nice identifiers. I feel it constraints the questions that can be asked.
Forces you to deal with space allocation. You can't just insert a line or move lines about. It ends up looking more like a flow diagram than a linear program. And I always feel like having to worry about technical things like that "affects my mojo".
Making the interviewee uncomfortable.
The only advantages of pen and paper, to me, is high availability and the fact that it is easier to gesture and show things over them afterwards.
Using a text editor or an IDE seems to me to make more sense. You could also rig it to measure time or even do a screen recording.
On the other hand, I can see several disadvantages to computer-based writing (in an onsite interview!) but I feel they can be easily overcome:
You need a computer - but I'd like to imagine that most companies have an old laptop that can be used just for interviews.
Candidates can cheat by going online - But they're being watched, and you can disable the network.
The IDE can catch certain silly mistakes - But hopefully you phone screened for those things, and you can always use a text editor.
Programmer may not be familiar with editor or keyboard - But honestly, if you can't figure out notepad on a standard windows box or consider yourself a linux programmer and don't know any built-in text editor?
Hygiene - But you can wipe the keyboard between candidates. You're already risking the handshakes.
So which one is best? And why do most places go for pen-and-paper?