Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

この書籍で扱う内容について #1

Closed
wants to merge 7 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions outline.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# 目次

## What is Promises?

- Promisesとは
- [x] Promises API の概要
- [x] Promisesの書き方

## How to use Promises?

- [x] `Promise.all`
- [x] `Promise.race`
- [x] `Promise.resolve`
- `thenable`について
- ユースケース
- [x] `Promise.reject`
- ユースケース?
- [x] Promisesのエラーハンドリング
- [x] `then` でエラーが起きたらどうなるの?


## Promise Test
- [x] Mochaでのテスト
- [x] エラーハンドリングのテストへの影響
- [x] Test as Promise

## Advanced Promises

- Promisesパターン?
- promissをキャンセルしたい
- promiseのチェインとメソッドチェーンの違い
- [promise chain · Issue #173 · admc/wd](https://github.com/admc/wd/issues/173 "promise chain · Issue #173 · admc/wd")
- Deferredとの違い
- Deferredのエラーハンドリング?
- Promises/Deferredのアンチパターン
- [Revealing Constructor Pattern](http://domenic.me/2014/02/14/the-revealing-constructor-pattern/ "Revealing Constructor Pattern")って?

## Reference

- [ ] APIのリファレンス

各文章からはAPIのリンクとして利用する

## 用語集

幾つかPromise(s?)な用語を意識してるので入れておく。

ただしこれが正しいなんて保証はない…

### コラム

- Promisesを実装する?
- polyfill or compatible library?
- 関数型プログラミングとPromises?