Python Case Types and Naming Conventions

preview_player
Показать описание
In this video, we learn about the different case types there are in programming and when to use what in Python, according to the naming conventions.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

Nice summary. Consider creating a playlist for newbies and include this. In addition, when you paste a hyper-link in PyCharm, you must use PyCharm's "Paste as Plain Text" Menu Option. Otherwise forward-slashes are interpreted as multi-line text.

scientifictraders
Автор

Hi, I just wanted to say thanks for all I have learned and am learning from you!
I just received your book "Python Bible 7 in 1" a week or so ago. I have a lot to learn but am working on it. ;) Thanks again!

SiuofEU
Автор

Just one thing: it's called "Kebab case" (named after the food kebab)

farzadmf
Автор

great video, learned a lot today. Keep on making more

deborahfernando
Автор

Camel Case: myVariableName
Snake Case: my_variable_name
Pascal Case: MyVariableName (CaptialCamelCase)
Kebap Case: my-variable-name (lisp-case, caterpillar-case)
Upper Snake Case: MY_VARIABLE_NAME
Flat Case: myvariablename
Cobol Case: MY-VARIABLE-NAME

Ralf-CGN
Автор

periodically post this video, it's very necessary since python allow anything

rons
Автор

While I adhere to the accepted conventions for a given language in order to get along with others in the sandbox, I would personally prefer Kebab case if I was coding solo. It's easier to type in lowercase and to use a dash because it doesn't involve a Shift combo. Capital Kebab (My-Variable-Name) might be even clearer but that brings the Shift back into play. Variable/class/method names are just tokens. The compiler doesn't care and in fact they get tokenized to something else internally anyway. The only purpose of conventions is user readability. I think a separator does an adequate job without capitalization. Some languages don't like dashes though.

reefhound
Автор

I will show this video who do unreadable code, naming variables as 'a', 'b', 'c' etc.

the_huge_knight
Автор

Liked before watching u have real flair for cutting to the point don't abandon it develop it and yt subbss will come along the way in due course... of time l o l

ronycb
Автор

Great video. What keyboard do you use?

AliHamza-encn