Python Case Types and Naming Conventions

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024

ความคิดเห็น • 15

  • @scientifictraders
    @scientifictraders ปีที่แล้ว +2

    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.

  • @SiuofEU
    @SiuofEU ปีที่แล้ว +1

    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!

  • @Ralf-CGN
    @Ralf-CGN ปีที่แล้ว +2

    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

  • @farzadmf
    @farzadmf ปีที่แล้ว +5

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

  • @reefhound9902
    @reefhound9902 ปีที่แล้ว

    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.

  • @rons96
    @rons96 ปีที่แล้ว

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

  • @AliHamza-en8cn
    @AliHamza-en8cn ปีที่แล้ว +1

    Great video. What keyboard do you use?

    • @MortalWombat22
      @MortalWombat22 ปีที่แล้ว +1

      Also wondering. Those switches sound good.

  • @the_huge_knight
    @the_huge_knight ปีที่แล้ว +1

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

  • @deborahfernando7707
    @deborahfernando7707 ปีที่แล้ว

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

  • @ronycb7168
    @ronycb7168 ปีที่แล้ว +1

    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

  • @jorgin10ful
    @jorgin10ful ปีที่แล้ว

    thanks!

  • @philtoa334
    @philtoa334 ปีที่แล้ว

    Thx_.

  • @dexterchuby
    @dexterchuby ปีที่แล้ว

    First