tgoop.com/prog_way_blog/212
Create:
Last Update:
Last Update:
Стили именования переменных
Я часто использую такие понятия, как pascal case
или camel case
, но внезапно понял, что они очевидны не для всех. Оставляю небольшую шпаргалку со всеми стилями именования:
// camel case
const name = "progway"
const getChannelName = () => name
const publicationStatus = ...
// pascal case
const Name = "progway"
const GetChannelName = () => Name
const PublicationStatus = ...
// snake case
const name = "progway"
const get_channel_name = () => name
const publication_status = ...
// flat case
const name = "progway"
const getchannelname = () => name
const publicationstatus = ...
const hashtag = "#iloveit"
// train case (HTTP заголовки)
Access-Control-Allow-Origin
Content-Length
Content-Type
Cache-Control
// kebab case (css свойства)
font-size
background-color
grid-template-columns
Вероятно, я что-то забыл, но тут точно собраны самые основные стили наименований.
Спасибо за прочтение, это важно для меня ❤️
BY progway — программирование, IT
Share with your friend now:
tgoop.com/prog_way_blog/212