#The question
The question
How to return the response from an asynchronous call?
#The answer
The answer
How to return the response from an asynchronous call?
#The story
The story
Felix Kling's excellent self-answer to this question has already been nominated but I'd like to highlight the answer by Benjamin Gruenbaum that helped me personally the most. I'm primarily an embedded systems programmer and recently for a simple cross-platform mobile app decided to go down the Cordova / AngularJS path neither of which I've used before. After reading the docs I was struggling to understand the concept of promises thoroughly and how they worked but Benjamin's answer quickly made it crystal clear and the concepts snapped into place.
Apart from the clarity of the answer on a subject not always easy to explain in a concise way I was also impressed that Benjamin took the time to add an additional answer specific to AngularJS when sometimes those later answers attract a little less attention. Not to mention he also added a second comprehensive answer when not using jQuery which I wish was around a few years earlier when I was doing something similar in plain JS.
That question and associated answers are a great example of how collaboration on Stack Exchange can provide many different approaches to similar problems and build a great knowledge base that can end up infinitely more useful than official documentation often written by a single author. I ended up completing my project within a week using a multitude of questions and answers on Stack Overflow along the way and I just don't think that would have been possible using the official documentation or books on the subject.