Hacker News new | ask | show | jobs
by wahlrus 2591 days ago
Lol. At my job, I code in several different languages. Sometimes, a new project requires me to to learn to write in a new language. It's not a big deal... Programming is pretty general, so new syntax doesn't slow me down too much.

But I can't tell you what the sleep command is any of these languages. I look it up every single time :P

5 comments

LOL, agreed.

I'm good with the sleep command in my many different languages. It's dealing with dates in any language...

I suspect 10% of of StackOverFlow hits are developers remembering how to parse a date in some form or another.

I’m starting to experience that too, where as the breadth of languages learned widens I forget the language specifics and really keep the generic terminology keen. Searching questions like how to sleep in LanguageX, how to iterate, create a thread, whatever need be.

https://en.wikipedia.org/wiki/Interference_theory#Retroactiv...

Me too. But how do you deal with this when you're interviewing? I'm more skilled and productive than ever but I feel like an idiot without access to documentation.
I don't think there's a sleep command in Javascript. It is against the "entire browser runs in a single thread" model, and it would make no sense up to very recently before promises were created (what it would do? start a call-back?).

If the question is from somebody with extensive experience in JS, that's a clear red flag (I don't have any extensive experience in JS). If it's from somebody with passing experience, it's not that bad. That said, I have no idea how to call sleep in any of the ~4 languages I'm currently using either.

They wanted the sleep command...so they could wait for an XHR to complete. So in context, it was a pretty massive red flag.
I'm in exactly the same boat. I've used 4 different stacks in the last year. It's too much. I can easily get in and debug and write code in basically any environment, but I don't have time to learn all the string methods of any particular language. Google all the way, and official docs (if they're any good). I rewrote an entire huge module in C#/.NET, have zero experience with that environment in the past. I would absolutely flunk a C# interview but I'm pretty confident in my ability to get work done.
Same here. Also using sleep for anything other than debug is code smell.