News for hackers. Stuff that matters.
Re:Hiring Is Broken: What Do Developers Say About Technical ... by bitL on Thursday August 15, 2019 @05:37PM (#20709935)
If they were willing to give you a top compensation, then OK, writing hash table from the scratch is a pretty common question at Google/FB. If it was for some generic job with generic pay, they did you a great service by rejecting you.
Re:Hiring Is Broken: What Do Developers Say About Technical ... by otabdeveloper4 on Friday August 16, 2019 @07:45AM (#20714156)
"Writing a hash table from scratch" is a programming 101 problem just slightly harder than FizzBuzz, but not by much.

Though I guess these days I guess 'software development' means downloading Javascript crap from github and copy-pasting CSS.

Re:Hiring Is Broken: What Do Developers Say About Technical ... by bsder on Friday August 16, 2019 @07:57PM (#20720834)
> "Writing a hash table from scratch" is a programming 101 problem just slightly harder than FizzBuzz, but not by much.

No, it's bloody not.

What's your hash function? Why? What do you do on hash collisions. How many buckets and how big? Does your hash function map to identity or not? Do you exclude certain fields from hashing? How do you handle contention from multiple threads? I can go on and on.

The fact that you think writing a hash is easy betrays a stunning amount of ignorance.

Re:Hiring Is Broken: What Do Developers Say About Technical ... by antisemiotic on Friday August 16, 2019 @08:09PM (#20720890)
To be fair, the interview question a few posts up mentioned a working hash table, saying nothing about efficiency or thread safety. (though such a question could be gamed with a linked list as a "well akshuolly" a single-bucket hash table...)
Re:Hiring Is Broken: What Do Developers Say About Technical ... by detaro on Friday August 16, 2019 @08:07PM (#20720884)
That's the difference between a hashtable you might want to use in practice and a toy example to have someone write some code while quizzing some CS theory.