News for hackers. Stuff that matters.
Re:What's Wrong with Tech Hiring by pklausler on Thursday September 16, 2021 @10:48AM (#28552518)
I find that the best way to expose candidates who can’t actually program is with coding questions that don’t have data structures or even loops in them. Can they write a simple Boolean expression to correctly implement a simple predicate? Too often, no, they can’t.

(Example: given two intervals [a,b] and [x,y], are they disjoint or do they overlap?)

Re:What's Wrong with Tech Hiring by dharmab on Thursday September 16, 2021 @10:50AM (#28552552)
On a team I worked on, our technical screening question was, essentially, to implement Python's `dict.get()` function. A surprising number of applicants who passed HR's screen failed at this stage.
Re:What's Wrong with Tech Hiring by andrew_ on Thursday September 16, 2021 @12:48PM (#28554104)
asking candidates to reimplement stdlib methods is asinine. (unless of course your company is working on python core)
Re:What's Wrong with Tech Hiring by dharmab on Thursday September 16, 2021 @12:59PM (#28554248)
The exercise wasn't a literal reimplementation, there were some additional constraints rather than a generalized problem, but it was literally 3 or 4 lines of simple if-then statements.

And not that it mattered to the purpose of this question, but this team did frequently work with kernel, language runtime and container runtime source code.

Re:What's Wrong with Tech Hiring by pklausler on Thursday September 16, 2021 @01:00PM (#28554254)
> A surprising number of applicants who passed HR's screen failed at this stage.

Perhaps you didn't notice this part of the parent comment.

Re:What's Wrong with Tech Hiring by andrew_ on Thursday September 16, 2021 @01:14PM (#28554435)
"surprising" indicates that the expectation was the candidates were supposed to be able to perform the task. Perhaps you read some sarcasm into the comment that wasn't explicit?
Re:What's Wrong with Tech Hiring by dharmab on Thursday September 16, 2021 @04:12PM (#28556868)
It wasn't a trick question or complicated in any way. It was something a first semester CS student could have done without hesitation.
Re:What's Wrong with Tech Hiring by cousin_it on Thursday September 16, 2021 @01:15PM (#28554448)
I like this question! Let's assume a<b, x<y, and intervals are open.

Okay: max(a,x)<min(b,y), using three comparisons.

Better: (a<x)?(b>x):(a<y), using two.

Best: (a<y)&&(b>x), using either one or two.

Re:What's Wrong with Tech Hiring by pklausler on Thursday September 16, 2021 @01:39PM (#28554695)
Those are all fine to me, and I'll follow up with a "how do you know that's right?" if needed. Looping over all valid values in one interval, testing for membership in the other, is kind of a red flag. A predicate that is incorrect and not caught by testing might be a very bad sign.
Re:What's Wrong with Tech Hiring by andrew_ on Thursday September 16, 2021 @12:46PM (#28554077)
I would decline to move forward in your process. I'm not here for banal, performative nonsense. Unless you're hiring entry level, an interview isn't a CS201 exam. I'm here for you to sell me on your team, culture, and technology choices. That question shows me that your company culture values performative pageantry versus discussing what I can add as a member of the team. Hard pass.
Re:What's Wrong with Tech Hiring by pklausler on Thursday September 16, 2021 @12:54PM (#28554178)
I like to work with engineers who don't write buggy code. Do you? How do you avoid hiring them?

Experienced engineers know that this is a hard problem and don't mind demonstrating basic competence. If you don't ask me to code, it's a hard pass from me -- your team has no filter.

Re:What's Wrong with Tech Hiring by andrew_ on Thursday September 16, 2021 @01:18PM (#28554472)
> I like to work with engineers who don't write buggy code.

I'm not sure if this is one of the most arrogant statements about engineering I've seen, or if you've found a treasure trove of demigods who never write code with bugs. If the latter, please have them fix the world posthaste.