Promise Ponderings, (Anti-)Patterns, and Apologies

added by bpwndaddy
8/27/2015 3:11:29 PM

632 Views

If you aren’t familiar with Promises or you have used them but don’t know why, then I hope this article will help you. Because “Promises are confusing.” And like any programming construct, having a good grasp of its behaviour comes from understanding what a Promise is built to do, not just how to use them. In this article I want to discuss some ways to utilise the “power of the Promise” and explain that in some cases unexpected or unusual behaviour is a feature of the language, not a “bug in the Matrix”. We will also discuss some common anti-patterns; what they are, why they are potentially dangerous, and how to avoid them.


0 comments