News for hackers. Stuff that matters.
Re:Hiring Is Broken by delinka on Thursday January 17, 2019 @10:52AM (#18931663)
And if the candidate will be writing a new DOM traversal API, this is a valid exercise.

As it stands, any of the libraries that do DOM manipulation for me also traverse the tree for me ... so, again, why do I need to implement a toy BFS in an interview?

Re:Hiring Is Broken by mattnewton on Thursday January 17, 2019 @10:58AM (#18931740)
To debug the traversal algorithm when it breaks in production?

Also, if you know that all the companies do this, why don’t you just study before hand? Tree traversals come up multiple times in the article. I understand the author’s frustration but not their (early) insistence on not studying for an important interview. When they did study later I wonder how seriously they took it based on the tone.

Re:Hiring Is Broken by delinka on Thursday January 17, 2019 @11:57AM (#18932356)
>To debug the traversal algorithm when it breaks in production?

And what's the likelihood of that happening with a well-used framework? Maybe the interviewer wants to see my ability to debug problems - great let's do that instead. You want to see how I work? OK, let's pair on something. Pinning this to "implement BFS at the drop of a hat on a whiteboard or in this project" is bullshit.

>Also, if you know that all the companies do this, why don’t you just study before hand?

Fine. I'll implement a few solutions to the problem in the languages I'm familiar with and put it on GitHub. Now the interviewer can check it out and we don't have to waste time at a whiteboard.

Re:Hiring Is Broken by throwawaymath on Thursday January 17, 2019 @02:14PM (#18933606)
> what's the likelihood of that happening with a well-used framework?

In my experience, higher than you'd hope.

Re:Hiring Is Broken by zentiggr on Thursday January 17, 2019 @02:33PM (#18933805)
You have heard of the monkey - ladder - banana experiments?

Just because the interview culture has evolved to this awkward unrepresentative generally unhelpful filtering method, is no justification for "well just do it that way and you'll be fine".

If I'm the new monkey, and someone smacks me for touching the ladder, I'm going to ask why and push back if there's no good answer.

Re:Hiring Is Broken by jokh on Thursday January 17, 2019 @10:58AM (#18931729)
Because one day you might need to, and you'll write a 100 lines of code to do it. If you had known what a BFS is and how to write it, you'd be able to accomplish the same task in 10 lines of code.
Re:Hiring Is Broken by dimillian on Thursday January 17, 2019 @11:10AM (#18931868)
Counter argument: I could google it, read about it, and implement it. All of it in 1/2H with a computer with internet. Not on a whiteboard. Which is a fucking stupid interview process.
Re:Hiring Is Broken by dev_dull on Thursday January 17, 2019 @11:10AM (#18931872)
Very unlikely in my opinion. Either you’re told about it beforehand, inherit a project that’s using it, or introduced to it during your PR. Especially in places that ask about them during an interview...

I don’t think it’s about the BFS, it’s about attitude.

Re:Hiring Is Broken by watwut on Thursday January 17, 2019 @11:02AM (#18931785)
Mostly because it is simple enough and does not require special knowledge except knowing what tree is. Comming with original situation is harder and would put candidate to more random position.

The maze solving could be solved by breadth first too. It is algorithm that can be used in many different contexts.