Multi Words Variable Names

Variable names with more than one word can be difficult to read.

There are several techniques you can use to make them more readable:

Camel Case

Each word, except the first, starts with a capital letter:

  myVariableName = "John"

Snake Case(❤)

Each word is separated by an underscore character:

  my_variable_name = "John"

Pascal Case

Each word starts with a capital letter:

  MyVariableName = "John"
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章