News for hackers. Stuff that matters.
Re:Am I the Unethical One? by pclmulqdq on Friday May 26, 2023 @02:54PM (#36088216)
This may be an unpopular point of view, but I think in situations like this, you should just pass on them. They are applying to tens of jobs and your company is interviewing tens of candidates, so there's no real reason for either of you to continue this process if they struggled on the easy problem and had questionable reasoning on the hard problem. However, if the candidate could very clearly explain the esoteric solution, there is a good chance that it's just similar to something she has done before and you should not be suspicious.

I am assuming that you had a compiler or IDE in this situation providing a useful error message. If you were whiteboard coding and you were telling the candidate "you have a syntax error but I won't tell you where" (like several folks at a former employer of mine were fond of), you may be the problem, not the candidate.

Re:Am I the Unethical One? by cogman10 on Friday May 26, 2023 @03:21PM (#36088494)
We ultimately did pass.

> I am assuming that you had a compiler or IDE in this situation providing a useful error message.

Yup. I prefer to give candidates compilers/IDEs and even access to google if they ask about it. Like I said, I'm not trying to trick them or anything, I just want to know if they can code.

> If you were whiteboard coding and you were telling the candidate "you have a syntax error but I won't tell you where"

I'd hate being on the receiving end of that and would never pull that sort of stunt. The software we use allows both sides to edit the code and I pretty regularly will go in and silently fix syntax errors for a candidate so as not to let a compile/refresh loop get in the way of actually solving the problem.

Like, what does "You have a syntax error" even prove? I'd let you write pure pseudo code so long as it makes sense.

I just don't like "mind games" in interviews.

Re:Am I the Unethical One? by WalterBright on Friday May 26, 2023 @05:40PM (#36089834)
I still make syntax errors all the time.
Re:Am I the Unethical One? by yamtaddle on Friday May 26, 2023 @07:20PM (#36090565)
I've been writing code for pay for more than 20 years and will forget basic syntax and keywords for a language I wrote hundreds of lines in yesterday without other code to crib off of, IDE assistance, and/or reference material (google, whatever). Like, I'll forget if it's "else if" or "elsif" or "elseif" or "elif" or whatever. Or I'll mix up how to access hash/list members. How to designate a constructor. Stuff like that.