Why still interviewers ask for codes to be written in middle of the interview?

Now we are in a AI powers ear and it is so easy to generate code what ever we needed. So, concentrating on the process awareness and the experience will be good enough to find a best match. So why still some companies include code questions in their interviews. If it is a open book test that fine, but in middle of a conversation?

4 Likes

This is exactly why we need it :rofl:

It’s to challenge the person to see if they can read/write code on the spot or if you need assistance from AI or other sources or not, it’s to determine the skill level of the person.

Example: Somebody who said on their resume that they’ve used Playwright with JS a lot.
But doesn’t know how to write anything and only copy paste from other cases will fail the test.

You can ask questions for sure but that will not always catch people.

2 Likes

It’s probably best not to get into a discussion about the quality of AI-generated code. As an interviewee, it’s not your business to tell the interviewer what questions they should ask, not least because you don’t know why they are asking the question.

When I interview people, I sometimes ask questions for which the answer is irrelevant. I am interested in how they answer the question and what they do and don’t say. A lot of applicants just bullshit when they don’t know the answer, and I’m not going to employ someone like that. If they need more information, I expect them to ask for it, yet few do. If they simply don’t know, I expect them to say so - I value honesty more than I value an answer that can be Googled in 5 seconds.

So rather than get upset about the question, think about why they might be asking it. And try to offer a thoughtful response if you don’t know the answer.

FWIW, if someone tells me they predominantly rely on AI-generated code, I interpret that as meaning they don’t know how to code. If you’re going to use AI-generated code, you need to be a good enough developer to review it and identify all the faults in it. Perhaps a better interview question would be to get applicants to do precisely that.

2 Likes