On the distinction between jQuery core methods ( .each() ) in the $.fn name space and jQuery utility methods ( $.each() ) not in the $.fn name space
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 45/100
- issue の種類
- ドキュメント
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, jquery
調査の方向性
リンク先の Learn jQuery URL にある Using jQuery Core の章と、その「$ vs $()」セクションから始めてください。.each() と $.each() の違いが分かるように説明を改訂し、$.fn とオブジェクトメソッドの用語を明確にし、namespace の文脈または引用を追加してください。初心者に対してその違いが明示されていれば完了です。
索引モデルが issue の本文から書いたものです。
説明
The Using jQuery Core chapter begins with the section titled $ vs $().
It's my thought that some additional wording could make the section's lessons more easily realized.
That section draws the distinction between jQuery core (object) methods called on jQuery selections and jQuery utility methods not called on selections. Thrown in on top of that is the further distinction between the $.fn namespace and the $ namespace.
Core (object) methods are identified simply by their names ( .each() ) but are in the $.fn namespace.
Utility methods ( $.each() ) are explicitly identified as members of the jQuery namespace, $, and are not in the $.fn namespace.
Get it?
.each() in $.fn namespace.
$.each() not in $.fn namespace.
My point is that that distinction is not so clearly made in the article. It took me several readings and a day's rumination before the fog lifted. I think that the jQuery novice, who is after all the section's target, would be better served by a more explicit and specific drawing of the distinction than is currently the case.
The point might also be explicitly made that core methods (.remove()) are also called object methods because they have an object, i.e., the jQuery selection ( $( "h1" ) ) upon which they are called ( $( "h1" ).remove() ). I think that would make the terminology seem more sensible and less arbitrary.
May I also suggest that this would be the place to give some insight into the namespace concept, just a paragraph or two. If not, then at least a citation to an article explaining the concept.
- 主要言語
- JavaScript
- スター
- 914
- フォーク
- 472
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
jquery/learn.jquery.com のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
jquery/learn.jquery.com#828 ·
-
Word(s) missing in article?再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンChapter: events
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
jquery/learn.jquery.com#751 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
jquery/learn.jquery.com#814 · コメント 1 件 ·
-
Chapter: plugins
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
jquery/learn.jquery.com#796 ·
-
Chapter: plugins
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
jquery/learn.jquery.com#782 ·
jquery/learn.jquery.com の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
good first issue help wanted javascript up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
andrewsiah/agentswarm-data-tasks#307 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
coder/claudecode.nvim#588 ·
メンテナーはふだん 1 日以内に返信
-
area: web tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
digitalbazaar/http-client#60 ·