News for hackers. Stuff that matters.
Re:Explain the first 10 lines of Twitter's source code to me by iamben on Friday February 25, 2022 @12:26PM (#30469693)
> Expecting people to know meta tags is ridiculous for all but very specialized roles.

Devil's advocate - is it? You're right, this stuff rarely gets touched, and (aside from changing the colours in the bit you hate!) it's the kind of stuff I'd normally boilerplate between projects.

But if you're interviewing for a role and you're not giving them a coding test (yet?) but looking to see how curious they are, how disparate their knowledge is, or just (as you say) how good someone is at guessing from context - isn't this a fun experiment?

I'd imagine just seeing how people deal with the answers gives you a good idea as to how they'd approach something when you're working together. Are they guessing? Confidently wrong? Seen it before but don't know what it is? Can roughly talk around it and what it does without exactly knowing? Proficient in it all (and how that relates to what they have or haven't said on their CV - have they under or over sold themselves?!)?

I assume you could apply the same sort of test to any domain - test someone on something closely related you don't necessarily need to know and see how they react.

Re:Explain the first 10 lines of Twitter's source code to me by tshaddox on Friday February 25, 2022 @04:06PM (#30472379)
It's really just the same kinda thing that fills most coding interviews (that aren't just pure live coding challenges): the interviewer is testing for something that isn't directly relevant to the role, because of course in the real role you'd be able to (and should!) research all the appropriate meta tags you should have on your web site, but since the interviewer deems it too difficult to actually directly test for the ability to do the job, they instead test for things that surely the candidate must have ran into before and has a good enough memory to at least have a conversation so that I can subjectively judge how skilled the candidate is.
Re:Explain the first 10 lines of Twitter's source code to me by bri3d on Friday February 25, 2022 @03:24PM (#30471940)
The problem with these "present a tangental question / loosely unfamiliar but similar" questions is that they become useless when a candidate does know the answer as memorized trivia. At that point you're looking for a signal about "what does the candidate do when presented with something familiar but unknown" but receiving "can the candidate regurgitate an answer."

Of course you can then ask a different question, follow-ups, and so on, but you're so far off baseline compared to most candidates that the question starts to become useless.

Re:Explain the first 10 lines of Twitter's source code to me by thomasahle on Friday February 25, 2022 @03:54PM (#30472246)
I don't think the point is that every interviewer should ask about Twitters source code, and every interviewee should memorize it.

The point is to ask a few randomly sampled knowledge questions to measure how well rounded the candidate is. Taking the "first 10 lines of Twitter" is just one way to sample such questions.

Re:Explain the first 10 lines of Twitter's source code to me by TrickardRixx on Friday February 25, 2022 @03:37PM (#30472066)
If you want to know how curious I am, ask me. If you want to know how disparate my knowledge is, ask me. If you want to know how good I am at guessing from context, ask me. If you're asking about meta-tag trivia, all you're going to find out is if I know meta-tag trivia. I know myself way better than any interviewer possibly can. If you don't trust me to evaluate myself, then you shouldn't be hiring me into a creative, professional, self-directed position.
Re:Explain the first 10 lines of Twitter's source code to me by rileymat2 on Friday February 25, 2022 @04:23PM (#30472539)
“ I know myself way better than any interviewer possibly can. If you don't trust me to evaluate myself, then you shouldn't be hiring me into a creative, professional, self-directed position.”

I am not sure this is well grounded in the studies of human psychology.

Re:Explain the first 10 lines of Twitter's source code to me by munk-a on Friday February 25, 2022 @05:10PM (#30472954)
I think it's extremely fair to not trust people to evaluate themselves when doing open hiring - for networked candidates you can usually relax some assumptions and for very senior/niche positions there's usually ample street knowledge available... but in these cases you're relying on a third party for some level of vetting. I would never solely trust a second party during hiring unless I had some method to confirm at least some of what they're saying.

A lot of companies are far too hesitant to trust employees, but blind trust is unwise - you can end up with an employee that either wastes three months salary or actively causes damage.

Re:Explain the first 10 lines of Twitter's source code to me by rileymat2 on Friday February 25, 2022 @05:23PM (#30473080)
I think we may be talking about slightly different things.

There is a ton of well researched psychology work on self deception, confirmation bias, it goes on and on.

Asking about the things that the OP was mentioning are deep psychological traps. Perhaps the OP has deep self awareness, but that does not apply to the general candidate or human.

Our blind spots of our own actions and behaviors are profound.

Re:Explain the first 10 lines of Twitter's source code to me by thomasahle on Friday February 25, 2022 @03:56PM (#30472281)
In my experience, lots of people apply for jobs they aren't qualified for. How does I as the interviewer know which candidates I can trust to assess themselves and which I can't?
Re:Explain the first 10 lines of Twitter's source code to me by munk-a on Friday February 25, 2022 @04:31PM (#30472609)
I mean, a fair number will walk in the door talking about C-pound. A number of them will exclaim "What wizardry is that!" when you open up the developer console (or accuse you of hacking). Just do your best to sus out obvious lemons and fix the rest in post (i.e. figure out if they're full of crap during their probationary period).

If you have specific pieces of technology you're working with and want to interview about then take an afternoon and just code up some bizarre snippets to go through with them - add a few mistakes they should be able to catch and just talk through their process.

I honestly don't think opening up a random website and asking about some of the source code is a terrible approach... if you're interviewing someone for writing HTML in the 90's - in the modern world all the JS is minified (and likely generated by a framework), the CSS is absolutely atrocious to read (usually also generated) and the HTML is pretty much irrelevant. Use something that's going to be applicable to candidates to judge their understanding - I've always been fond of short puzzles very much unlike this one (it's way too arcane) in PHP `0x5 &$var=['cow' => 6]['cow']`[1] - just blerbs where you can step through some syntax understanding and problem solving at the same time.

An actually good suggestion is to check out a random (ideally mostly self-contained) file from your codebase from a decade ago and step through what's awful about it - all code bases have these, and they're usually still kicking around as active code in production. At one of my more recent interviews they sent me login.php (the one actually in production, which they knew was broken - they had two developers before me which were really overworked) and just asked me to mark up wrong stuff - I found SQL injections, unbound variables, conditions that would result in invalid HTML and broken forms and some terrible decisions from a readability perspective. I spent... maybe an hour on it.

1. https://3v4l.org/85MV3

Re:Explain the first 10 lines of Twitter's source code to me by TrickardRixx on Saturday February 26, 2022 @05:32AM (#30476556)
My point was that you can have a conversation with a candidate instead of using arbitrary trivia that is irrelevant to the job and potentially irrelevant to the human you’re interviewing. If you want to find out about someone’s diversity of knowledge, I think “what’s the most esoteric tech you’ve worked with” or “tell me about a project that taught you the most” are vastly superior conversation starters than meta-tag trivia.