3 ms·
Lot of blabbling for a simple concept: do not abuse nesting. It's the case with control statements, it's still the case with functions, and even more with async
by williamdclt 10y ago
Lot of blabbling for a simple concept: do not abuse nesting.
It's the case with control statements, it's still the case with functions, and even more with async functions.
Oh, and callbacks definitely exist in other languages, like C.
What's the deal with this trend of setting up a whole website for a (basic) blog post?
- briceb8e 10y agoSEO.
- meowpants 10y agoDon't be hatin'. It's a useful read for many. "Simple concept" is subjective. I'd bet that discussing "simple concepts" with an engineer or scientist would likely cause your mind to grasp and instinctively try to relate to your own memorization of facts. But that shouldn't preclude you from discussing what you do know, or for that matter, sharing it with the world.
- williamdclt 10y ago(answering you, but also for otherz saying the same thing below) Yeah you're probably right, I've been a bit pedantic. I feel this article is unnecessary long for the subject, it would be a good length for something like "setting up a hadoop cluster", but having all sorts of articles about all subjects is a very good thing. My bad.
- davidrm 10y agoDetailed posts like these help beginners.
- emdowling 10y agoI would've loved an article this well written and explicit when I was first learning JS (or even any language, really). Really well done with good, practical examples.
- delinka 10y agoCallbacks exist in C. But inline functions (where a parameter to another function would be placed), don't. Actually, we don't even have closures in standard C (there is a non-standard extension provided by Apple that maybe you can use to recreate JavaScript's callback hell if you're so inclined...)