0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

[備忘録]変数名や関数名の色々な記述方法パターンについて

0
Posted at

今回はCSを学習していて変数や関数を記述する際に色々な記述パターンがあるので、備忘録も兼ねた上でまとめてみる。

アッパーキャメルケース

単語の先頭を大文字にする記述方法。

例

qiita.rb
def IsValidEmail(email):

ローワーキャメルケース

単語の先頭は大文字にして、変数名、関数名の最初の文字を小文字にする記述方法。

例

qiita.rb
def isValidEmail(email):

スネークケース

アンダーバーを使用する記述方法。

例

qiita.rb
def is_valid_email(email):

#まとめ

備忘録として主に使用されている記述方法をピックアップしてまとめました。個人的にはローワーキャメルケースを使用していますが、言語やチームの方針などでも違うみたいです。参考になれば幸いです。

0
0
0

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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?