0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

どんな変数名が良いか

Last updated at Posted at 2022-07-09

変数の統一

記述方式
キャメル記法 totalPrice
スネーク記法 total_price
パスカル記法 TotalPrice

趣味の範囲では、どの記述方式を選んでもよいが、統一しないと分かりづらい。
スネーク記法を用いて、定数はTOTAL_PRICEといった大文字にする方式を採用しようと思う
※職場での納品物は各現場のコーディング規約に従いましょう。

0
1
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?