Skip to main content
Commonmark migration
Source Link

#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.

#The question

How to return the response from an asynchronous call?

#The answer

How to return the response from an asynchronous call?

#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.

The question

How to return the response from an asynchronous call?

The answer

How to return the response from an asynchronous call?

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.

replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link

#The question

How to return the response from an asynchronous call?How to return the response from an asynchronous call?

#The answer

How to return the response from an asynchronous call?How to return the response from an asynchronous call?

#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 GruenbaumBenjamin 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 jQuerynot 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.

#The question

How to return the response from an asynchronous call?

#The answer

How to return the response from an asynchronous call?

#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.

#The question

How to return the response from an asynchronous call?

#The answer

How to return the response from an asynchronous call?

#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.

Source Link
PeterJ
  • 3.8k
  • 2
  • 18
  • 20

#The question

How to return the response from an asynchronous call?

#The answer

How to return the response from an asynchronous call?

#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.