-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(frontend): rename pizzax fields
- Loading branch information
Showing
50 changed files
with
243 additions
and
236 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
08f7e7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一文字略語はコメント注があってもコードの可読性が低いのであまりいいアイデアとは思えないです
08f7e7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
慣れると短い方が可読性高まるわね
08f7e7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
必ずしも慣れている人がコードを書くわけではないのと慣れてないと読めないコードは可読性が高いとは言えないと思います
08f7e7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reactiveState だろうと r だろうとその概念がどういう実装でどう使うのかというのは結局学習する必要があるから、「Misskeyの実装の概念に慣れていない人がMisskeyのコードを書く」というシチュエーションはあまり想定していない
08f7e7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reactiveStateはまだその文字列から用途が推測できるので "Misskeyに" 習熟していない人でも読めるけれど、これは命名のアンチパターンだと思います(よそでも別に同じ概念はあるので理解の助けになるし、安易な略語化はコントリビュートの幅を狭める)
08f7e7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
慣れている場合の可読性・書きやすさを重視してこれでいきます
あと安易ではないです
08f7e7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ちなみに頻出するワードを略す(糖衣構文)のは他でもよくある
例:
Vueの
h
-> createVDOM の略、:
→ bind の糖衣構文08f7e7d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
そういった意図があるのであれば納得と承諾はします
なぜこの変更がバッドプラクティスだと考えていたかを、念のため落ち着いて再考したうえで書いておきます(後学のためと、判断材料として)
store.s, r
のような省略とは状況が異なります。h()
はレンダー関数のみで頻繁に使用されるものであり、hyperscriptの略としてコミュニティに浸透しています。:
はあくまで接頭辞、h()
はレンダー関数としてのみ使用store.state
,store.mutations
,store.actions
などが用いられている