Q framework is very famous( more than 7k stars on github), could someone tell me what does Q mean?
I have googled around and checked its official doc, but not found any clue...
Q framework is very famous( more than 7k stars on github), could someone tell me what does Q mean?
I have googled around and checked its official doc, but not found any clue...
It's pretty much explained in the doc.
The callback approach is called an “inversion of control”. A function that accepts a callback instead of a return value is saying, “Don’t call me, I’ll call you.”. Promises un-invert the inversion, cleanly separating the input arguments from control flow arguments. This simplifies the use and creation of API’s, particularly variadic, rest and spread arguments.
You might want to read more regarding callback hell and how that relates to using control flow libraries like Q, and how Promises fit in.