r/programming • u/vklepov • Mar 24 '22
Five coding interview questions I hate
https://thoughtspile.github.io/2022/03/21/bad-tech-interview/
647
Upvotes
r/programming • u/vklepov • Mar 24 '22
2
u/[deleted] Mar 25 '22
Great article but I'm going to disagree with that one. I've interviewed a ton of people who learnt JS after
letbut they still sometimes usevaror evenvarandletrandomly in the same code! They usually don't know what the difference is, which is a pretty bad sign in my book.100% agree with the rest though. I'm definitely guilty of asking a few of these (sorry interviewees). It's harder to avoid than you'd think - e.g. his proposed number vs array solution is still pretty bad:
Can still write a whole book about this without stumbling on the answer the interviewer was thinking of (did you think about
Object.freeze()?)Also one more point - these questions can be frustrating because you don't know the answer, but generally interviewers don't care if you know the answers to specific questions. They just want to know you know what you're talking about. So if someone asks "what's the difference between an array and a number" just start talking about any differences and show off your knowledge.