asciidwango / js-primer

:book: JavaScript Primer - 迷わないための入門書
https://jsprimer.net
Creative Commons Attribution 4.0 International
2.34k stars 223 forks source link

2017-03-24 ミーティング #209

Closed azu closed 7 years ago

azu commented 7 years ago

アジェンダ置き場

azu commented 7 years ago

121 StringのTagged Template Literalのサンプルどうするか

候補

// String.raw
function tag(strings, ...values) {
 return strings.reduce((a, s, i) => a + values[i - 1] + s); 
}

tagged template literal書き方

reduceでやるほうが良いのかな? https://github.com/asciidwango/js-primer/blob/master/source/use-case/ajaxapp/display/README.md

function escapeHTML(strings, ...values) {
    return strings.reduce((accumulator, string, index) => {
        return accumulator + escapeSpecialChars(values[index - 1]) + string; 
    });
}
azu commented 7 years ago

console.logと// => の使い分け #195

console.log(a); // => x
a; // => x

試しにやってみた: https://github.com/asciidwango/js-primer/pull/212

azu commented 7 years ago

ラベル管理について

色々カテゴリ別に追加した。 (多分使わないのがあると思うのでいらないのは消して良さそう)

議論で方針が決まったIssueはStatus: Ready for PRをつけるか閉じるかしていきたい。

azu commented 7 years ago

ここからログ


azu commented 7 years ago

encodeURIComponent() + template literalでURLのパス?

lacolaco commented 7 years ago
const tagName = "空白が 混ざった 文字列";

path`/tags/${tagName}`
azu commented 7 years ago

APIのパス組み立ての例をtagged templateで簡単に紹介。

lacolaco commented 7 years ago
`https://${apiHost}/${path}`
azu commented 7 years ago

214 Issueを作った

azu commented 7 years ago

console.logと// => の使い分け #195

について。 ウェブだとあった方が便利。だけど書籍だと醜そう。

azu commented 7 years ago

場合によって分けるとかで良い気がする。

console.log(a); // => aの結果 がconsole.logの結果が右側っぽく見える

azu commented 7 years ago

Node.だとconsole.log({});// [Object object] なので意味が異なる可能性がある。

azu commented 7 years ago

node -v v7.2.0

> console.log({s:1})
{ s: 1 }
undefined
> console.log({s:1})
> var object = { a : {} }
undefined
> console.log(object)
{ a: {} }
undefined
> var object = { a : { b : 1} }
undefined
> console.log(object)
{ a: { b: 1 } }
undefined
> var object = { a : { b : 33  } }
azu commented 7 years ago

コメントのところに評価コメントの書式についてをちゃんと説明を書く。 不要なところについてはconsole.logは省いても良い。

azu commented 7 years ago

Issue化 https://github.com/asciidwango/js-primer/issues/215

azu commented 7 years ago

ラベルの管理方法についてを説明

https://github.com/asciidwango/js-primer/labels/Status%3A%20Ready%20for%20PR は議論済みでコミットできる状態のissue

lacolaco commented 7 years ago

https://github.com/asciidwango/js-primer/pull/202/files/246a42967bfa5dc4f6724639927ae1bbe313504e#diff-e17432ce26c5c47f53bf2a852cf2f57a

console.error の使い方 統一?

azu commented 7 years ago

console.error(error.message, error.stack)

azu commented 7 years ago

エラーの出し方

azu commented 7 years ago

console.error(error)に揃える。

azu commented 7 years ago

string: 「文字列」「部分文字列」「検索文字列」 #208

azu commented 7 years ago

先人の知恵を頼ろう。

azu commented 7 years ago

正規表現は文字列の章に混ぜた。

lacolaco commented 7 years ago

Rest https://github.com/asciidwango/js-primer/blob/master/source/basic/function-method/README.md#rest-parameters

azu commented 7 years ago

目次のカバレッジの話

大体半分ぐらい?

azu commented 7 years ago

https://github.com/js-joda/js-joda

azu commented 7 years ago

手が空いたらビルトインオブジェクトに手を付ける?

lacolaco commented 7 years ago

nodecliの次はJSON辺りから手を付ける

lacolaco commented 7 years ago

目次整理

azu commented 7 years ago

徹底マスター JavaScriptの教科書 プログラミングの教養から、言語仕様、開発技法までが正しく身につく | 磯 博 | インターネット・Web開発 | Kindleストア | Amazon

lacolaco commented 7 years ago

とか書いとかないと忘れる

azu commented 7 years ago

http://www.sbcr.jp/products/4797388640.html

azu commented 7 years ago

目次 http://blog.livedoor.jp/dan4423/archives/5191202.html

azu commented 7 years ago

次回: 5月26日(金曜日)

azu commented 7 years ago

Screen Object こんなのあるんだ