Hacker News new | past | comments | ask | show | jobs | submit login

I've written in so many languages that I wouldn't be able to answer how to sleep in language X off the top of my head. Is it time.Sleep()? delay()? wait_for()? nsleep()? timer().delayUntil()? something else? No clue, but I know how to find out.

You're not hiring me for my encyclopedic knowledge; you're hiring me because I get the job done quickly and effectively, using a proper design and clean, tested code.

Not to mention, there is no sleep command (I assume he meant setTimeout, which has very different functionality than a typical language's sleep command) in javascript, which kind of makes me question the credibility of someone insisting on gatekeeping the senior developer title so hard.

Maybe that was the OPs point? The paradigm of Javascript is incompatible with having a sleep() command, and an experienced Javascript programmer should know that?

There is no sleep command. They didn't understand how callbacks worked at all. In JavaScript, that's fundamental. He wanted to poll with sleeps.

Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | Legal | Apply to YC | Contact