Naming Conventions
We considered the 'technical' side of naming variables in the previous chapter. At the same time, there are several conventions among programmers in regard to naming. These are:
- Variables’ names should be lowercase.
- For variables’ names that contain several words, we should separate these words with the underscore characters (
_
).
These rules are not compulsory, but they are recommended. For example, if you need to store the number of a user's points, it will be much better to use
points
,num_of_points
, orn_points
instead ofn
,p
, or something like that.
Дякуємо за ваш відгук!
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат
Запитайте мені питання про цей предмет
Сумаризуйте цей розділ
Покажіть реальні приклади
Awesome!
Completion rate improved to 4
Naming Conventions
Свайпніть щоб показати меню
We considered the 'technical' side of naming variables in the previous chapter. At the same time, there are several conventions among programmers in regard to naming. These are:
- Variables’ names should be lowercase.
- For variables’ names that contain several words, we should separate these words with the underscore characters (
_
).
These rules are not compulsory, but they are recommended. For example, if you need to store the number of a user's points, it will be much better to use
points
,num_of_points
, orn_points
instead ofn
,p
, or something like that.
Дякуємо за ваш відгук!