News for hackers. Stuff that matters.
Re:Do We Worship Complexity? by exabrial on Tuesday October 16, 2018 @04:23PM (#18232910)
On the contrary, if someone that worked for me needed to randomize a List and implemented their own function, I would be gravely concerned about the rest of work and what they're spending their time on.
Re:Do We Worship Complexity? by ummonk on Tuesday October 16, 2018 @05:15PM (#18233341)
And when Google implemented Java for Android, how, pray tell, should they have implemented Collections.shuffle?
Re:Do We Worship Complexity? by uryga on Tuesday October 16, 2018 @05:29PM (#18233463)
Implementing a stdlib isn't a thing you do every day. Presumably GP was referring to more common situations, where using the stdlib is (usually) preferable to rolling your own solution.
Re:Do We Worship Complexity? by anyfoo on Tuesday October 16, 2018 @09:46PM (#18235083)
They were interviewing for Google. It's not uncommon to have to implement a standard library function (or not be able to use one) in many contexts at Google. Besides, the question is just the most basic setup to assess how a candidate would fare in comparable situations.
Re:Do We Worship Complexity? by gaius on Wednesday October 17, 2018 @03:36AM (#18236955)
They were interviewing for Google.

99% of developers at Google are doing commodity work. It is are practically IBM or HP now.

Re:Do We Worship Complexity? by XorNot on Wednesday October 17, 2018 @02:50AM (#18236723)
Is it though? Because the answer to "suddenly I need to implement a standard library" is "I google the accepted solutions" and if I don't have Google then I goto the library and check out a bunch of old CS books.
Re:Do We Worship Complexity? by ummonk on Wednesday October 17, 2018 @11:39AM (#18240106)
And then the interviewer's follow-up question should be "fine, since you don't want to indulge me and implement a solution to this toy problem, I'll ask you to implement a much more complicated function which doesn't exist in any library!"
Re:Do We Worship Complexity? by monocasa on Tuesday October 16, 2018 @05:58PM (#18233658)
They grabbed it out of harmony.
Re:Do We Worship Complexity? by anyfoo on Tuesday October 16, 2018 @09:43PM (#18235040)
But you would not be concerned about a candidate that does not understand that this question is clearly (very clearly) meant to assess how they understand and approach algorithms and randomness?

It's obvious that you should use a library function if there is a library function.

Re:Do We Worship Complexity? by pbhjpbhj on Wednesday October 17, 2018 @08:54AM (#18238456)
A question like "how do you reverse a string" surely is like asking a chef to cook an egg? Any idiot can do it, it's got to be an opening on to "who are my customers?", "what are the cost and time constraints?", "what team members do I have?" "what's our angle" ...? If the answer is just "boil it for 5 minutes" then you know you're looking at someone with simplistic thinking; which is fine if you just need someone to mindlessly do as they're told. They might be an absolute expert at it.
Re:Do We Worship Complexity? by anyfoo on Wednesday October 17, 2018 @04:23PM (#18243400)
Yeah, it's just an opener. Setting the stage, making sure everyone is on the same page, and then you can build onto that à la "and now suppose xyz...".