Help us understand the problem. What is going on with this article?

メソッド名の暗黙的ルールとその他

随時更新

メソッド名

既存の名前を敢えて変えるのは混乱するのでやめたほうがいい

特に複数人で開発されている環境において、名前を統一しないとよくわからない変数が乱立したり その変数になにが入っているのか元の処理を確認する手間が生まれて効率が悪くなる。

主語がないと対象を具体的に掴むことができない

EX. parseJsonToString
"JSONをStringに変換する"機能を持っている

クラスと変数

クラスは1文字目は大文字 ex. class Japan
変数は1文字目は小文字 ex. var tokyo

その他

for

for-in文は、役割的に一方を複数形の名称、
一方を単数形の名称にするのが正しい

Bool

Boolの変数名はis-- で表現するのが一般的。
ex.isGetOn

Why do not you register as a user and use Qiita more conveniently?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away