Most big companies I applied at had about half of the grilling and the rest of the interview was "culture fit"
Running a company is a team activity. I think there are too many sports metaphors in business, but if you've ever played a team sport you realize that the best teams are usually the ones with the players who play best together, not the ones with the most talented players. I could run this metaphor in to the ground, but the point is that hiring only the "best-of-the-best" is neither a credible claim nor a good methodology for creating a successful business. You might be able to do that when your company is 5 people, but it's probably much better to have good role players who are a cultural fit for your organization in the long run.
This is going to be a black mark on my OCD coder's soul for the rest of time. A code typo immortalised next to my name.
/sigh.
There's a lesson for me... Never. Ever. Attempt to be clever on hackernews.
Thanks for pointing it out.
... I wonder if HN mods would be willing to spare me this suffering. Undoubtedly a waste of their time.
Seriously, the original code is not too bad and probably what most people would write if the inputs and functionality of that function are only complex enough. "Hm, what else goes into isPrepared? Do I have to consider anything else before returning true or false?"
It reminds me of that freakonomics article about how real estate agents get more for their houses because they wait longer for a higher offer. By getting the practise and being better at job interviews and NOT jumping at the first offer, you get a better overall rate.