[過去ログ]
Ruby 初心者スレッド Part 66 (1002レス)
Ruby 初心者スレッド Part 66 http://mevius.5ch.net/test/read.cgi/tech/1578068134/
上
下
前次
1-
新
通常表示
512バイト分割
レス栞
抽出解除
必死チェッカー(本家)
(べ)
自ID
レス栞
あぼーん
このスレッドは過去ログ倉庫に格納されています。
次スレ検索
歴削→次スレ
栞削→次スレ
過去ログメニュー
271: デフォルトの名無しさん (ワッチョイ 1161-44a/) [sage] 2020/03/20(金) 00:53:19.01 ID:405ti7Ej0 >>264 JS は、promise, then, async, waitUntil, ServiceWorker(PWA)などの部分がかなり難しく感じる。 event の bubbling phase, capture phase, target phase と絡んで cancelBubble, stopPropagation, preventDefault の話も正確に理解するのはなかなか難しい。 http://mevius.5ch.net/test/read.cgi/tech/1578068134/271
272: デフォルトの名無しさん (ワッチョイ 1161-44a/) [sage] 2020/03/20(金) 00:56:41.66 ID:405ti7Ej0 event.waitUntil() event.respondWith() はいまだにちゃんと理解できてない。 ServiceWorkerのWorker Lifecycleも物凄く理解が難しい。 http://mevius.5ch.net/test/read.cgi/tech/1578068134/272
273: デフォルトの名無しさん (ワッチョイ 1161-44a/) [sage] 2020/03/20(金) 01:05:01.24 ID:405ti7Ej0 さらに、Blob の概念も独特で難しい気がする。 http://mevius.5ch.net/test/read.cgi/tech/1578068134/273
274: デフォルトの名無しさん (ワッチョイ 1161-44a/) [sage] 2020/03/20(金) 01:07:27.55 ID:405ti7Ej0 これも理解できない。 誰かに教えてほしい。 addEventListener('fetch', event => { // Prevent the default, and handle the request ourselves. event.respondWith(async function() { // Try to get the response from a cache. const cachedResponse = await caches.match(event.request); // Return it if we found one. if (cachedResponse) return cachedResponse; // If we didn't find a match in the cache, use the network. return fetch(event.request); }()); }); http://mevius.5ch.net/test/read.cgi/tech/1578068134/274
276: デフォルトの名無しさん (ワッチョイ 1161-44a/) [sage] 2020/03/20(金) 01:54:59.68 ID:405ti7Ej0 >>275 でも今のJSでPromiseを避けて済ますことは難しい。 特にPWAのHelloWorld的なプログラムで>>274のように、 Promise, async, await, respondWith などの難しいが概念が同時に出てきてしまい、挫折してしまう可能性が高い。 やりたいことは単に、ウェブアプリのアイコンをホーム画面に出したいだけだと言うのに。 http://mevius.5ch.net/test/read.cgi/tech/1578068134/276
280: デフォルトの名無しさん (ワッチョイ 1161-f9wa) [sage] 2020/03/20(金) 11:04:22.80 ID:405ti7Ej0 >>279 例えば、Win32APIなど非同期処理もMSDNを読めばちゃんと理解できる。 ところが、Promiseは公式サイトが何を言っているのか分からないので 99%の人が理解できない。 http://mevius.5ch.net/test/read.cgi/tech/1578068134/280
メモ帳
(0/65535文字)
上
下
前次
1-
新
書
関
写
板
覧
索
設
栞
歴
スレ情報
赤レス抽出
画像レス抽出
歴の未読スレ
AAサムネイル
Google検索
Wikipedia
ぬこの手
ぬこTOP
0.034s