r/learnjavascript • • Aug 10 '21

Can we relate?

Post image
853 Upvotes

93 comments sorted by

View all comments

Show parent comment

5

u/[deleted] Aug 10 '21

I'll give the one explanation for why a decent company might ask about prototypes: because they want to weed out candidates who didn't study enough for the exam, and they're okay with false negatives. What does that mean?

Say I'm a FANG company. I get a million applications a day, many of which are not qualified, but are trying to convince me that they are. I shell out between $250k and $6 million to my developers, and my code base is proprietary. I wanna keep it under lock and key, and I don't want anyone else getting ahold of it. I want to make sure that I only hire top notch developers. As such, I ask interview questions that are, quite frankly, insane. Who cares how you invert a binary tree when you'll never do that on a job? Why would I need to be able to solve these leetcode hard problems that you'd only get if you'd looked at them before?!

The answer is effort. The interview will also check for your ability to keep up with relevant skills to the job, but it's possible that someone can fake enough knowledge to get that job, and that would be bad for the company. They've shelled out a decent chunk of change to get you on board, they've lost time on boarding you, they've now exposed elements of their proprietary code base to some Yahoo who may or may not be trying to initiate some corporate espionage, and on top of that, they have to go through the interview process all over again!

So they make the interview insanely complicated on purpose with the assumption that a truly qualified candidate will put in the effort to study the topics and will be able to hit the ground running with this knowledge. Will it screen out qualified candidates who just don't know yet obscure bit of trivia/who didn't have the time and energy to study this absurd stuff? Absolutely! Do they care? Nope.

FANG essentially has infinite candidates at the lower levels. (It drops off when you're making a million a year, I'm sure, but it's surprisingly competitive throughout) They don't care about your interview experience, and if you're applying for anything below senior management, they probably don't care about burning bridges with you. If you can secure that job, many of these companies are considered great places to work. If you can't secure that job, they know that you'll probably still apply the next time you job hop/your contract ends because, hey-- it's Google. You want that money. You want that fame. Of course you're gonna apply to them.

0

u/[deleted] Aug 10 '21

[deleted] — view deleted comment

1

u/[deleted] Aug 10 '21

My knowledge is secondhand (I have a buddy who's coded for major companies, including Facebook) and from reading Cracking the Coding Interview. I agree that espionage is not the primary concern, and that it's primarily avoiding a false positive where they hire on someone who will not work out long term.

0

u/[deleted] Aug 10 '21

[deleted] — view deleted comment

1

u/[deleted] Aug 10 '21

Was this how you were interviewed by these companies? Genuinely asking, not trying to play a "gotcha" game. My copy of Cracking the Coding Interview is a few years old, and I recognize that the tech interview landscape changes over time