All Projects → meathill-lecture → promise-yes

meathill-lecture / promise-yes

Licence: other
Slide about how to use Promise in JavaScript.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to promise-yes

boss-lite
Boss Lite - React Redux Material Admin Template
Stars: ✭ 148 (+1038.46%)
Mutual labels:  ecmascript2015
Modern.JS
모던 자바스크립트 라이브러리/프레임워크 × KIPFA(한국인터넷전문가협회)
Stars: ✭ 16 (+23.08%)
Mutual labels:  ecmascript2015
bluff
🙏 Promise A+ implementation
Stars: ✭ 14 (+7.69%)
Mutual labels:  promise
react-firebase-t3chfest
T3chFest 2017 Workshop about React + Firebase
Stars: ✭ 42 (+223.08%)
Mutual labels:  ecmascript2015
fetchye
✨ If you know how to use Fetch, you know how to use Fetchye [fetch-yae]. Simple React Hooks, Centralized Cache, Infinitely Extensible.
Stars: ✭ 36 (+176.92%)
Mutual labels:  promise
promised-hooks
Middleware utility for your Promises
Stars: ✭ 25 (+92.31%)
Mutual labels:  promise
Vue-CAMP
VueJS
Stars: ✭ 16 (+23.08%)
Mutual labels:  ecmascript2015
market-pricing
Wrapper for the unofficial Steam Market Pricing API
Stars: ✭ 21 (+61.54%)
Mutual labels:  promise
promise4j
Fluent promise framework for Java
Stars: ✭ 20 (+53.85%)
Mutual labels:  promise
Slide
Slide is an open-source, ad-free Reddit browser for Android.
Stars: ✭ 1,733 (+13230.77%)
Mutual labels:  slide
radiaSlider
circular/linear knob-style slider
Stars: ✭ 18 (+38.46%)
Mutual labels:  ecmascript2015
RNSlidingButton
React Native Button component which support Slide event to perform action.
Stars: ✭ 19 (+46.15%)
Mutual labels:  slide
promiviz
Visualize JavaScript Promises on the browser. Visualize the JavaScript Promise APIs and learn. It is a playground to learn about promises faster, ever!
Stars: ✭ 79 (+507.69%)
Mutual labels:  promise
tabs
pure javascript tabs for ES6
Stars: ✭ 11 (-15.38%)
Mutual labels:  ecmascript2015
parley
Flow control harness for implementors. Builds a Deferred object that supports async/await, promise chaining, and conventional Node callbacks.
Stars: ✭ 23 (+76.92%)
Mutual labels:  promise
JJ CAMP
JavaScript & jQuery 정복 CAMP × 패스트캠퍼스
Stars: ✭ 19 (+46.15%)
Mutual labels:  ecmascript2015
promise-all-properties
A helper function that recevies an object with a promise in each property and returns a promise that resolves to an object with the same properties and the resolved values of the promises
Stars: ✭ 26 (+100%)
Mutual labels:  promise
alls
Just another library with the sole purpose of waiting till all promises to complete. Nothing more, Nothing less.
Stars: ✭ 13 (+0%)
Mutual labels:  promise
promise-waterfall
promise-waterfall extends promise utilities with sequential flow control function like async.waterfall
Stars: ✭ 28 (+115.38%)
Mutual labels:  promise
Rmarkdown tutorial
Reproducible Research with Rmarkdown: data management, analysis, and reporting all-in-one
Stars: ✭ 18 (+38.46%)
Mutual labels:  slide

Promise 的 N 种用法

这个标题是我临时起的,没想到站方直接拿来走宣传流程了……所以就不改了,就这么着吧。

幻灯片地址

直播间

开播时间:2017-04-06 20:00:00


内容简介

为解决异步函数的回调陷阱,开发社区不断摸索,终于折腾出来 Promise 这套方案。它不增加新的语法,可以适配当前的主流浏览器;写出来的代码也很好读懂;并且包含优秀的调试和捕获异常方案。在迭代中逐步完善,最终被吸收进 ES2015 规范。

现在大部分浏览器和 Node.js 都已原生支持 Promise,很多类库也开始返回 Promise 对象,即使面对 IE,也有各种降级适配策略。如果您现在还不会使用 Promise,那么我建议您尽快学习一下。

本次分享我准备结合近期的一些开发经验,总结一下 Promise 常见用法,介绍一下我踩过的坑。分享大纲如下:

  1. 什么是 Promise
  2. 为什么要用 Promise
  3. Promise 详解
  4. 简单范例
  5. 复杂加载过程
  6. 改进代码可读性
  7. 常见错误

分享长度:约1小时 分享难度:需要了解 JavaScript,最好有相关开发经验

范例代码

sample

协议

代码部分采用 MIT 进行许可。

知识共享许可协议 Slide 和文档部分采用 CC4.0 进行许可

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].