3 ms·
> A lot of beginner guides to various programming languages make this mistake of associating a certain property with a language as if it's inherent. In this cas
by masklinn 10y ago
> A lot of beginner guides to various programming languages make this mistake of associating a certain property with a language as if it's inherent. In this case, async code - while sold as a main feature of the NodeJS platform - is in no way exclusive to, or even an inherent part of, Javascript/ES the language.
Exclusive no, but considering JS's original environment and constraints it is in fact pretty inherent. `setTimeout` is part of the core language and has been for a long time, a blocking `sleep` is not.
- vmasto 10y agoActually `setTimeout` is not part of the core language, it's a Web API.
- srssays 10y agoI think the point they were trying to make is that all JS is almost always used with a run loop. Whereas Ruby and Python are often used without a run loop.
- richmarr 10y ago> I think the point they were trying to make is that all JS is almost always used with a run loop. Sure, but criticising a rant about the propogation of misconceptions by propogating a misconception seems like a self-undermining position :)
- deleted 10y ago[deleted]