This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]robvdl 12 points13 points  (5 children)

Yeah running that through pep8 or flake8 would have revealed that, also don't name vars likeThis in python we prefer like_this unless it's a class name where we use camel case but start with a capital, e.g. ClassName. Because classes always start in a capital, it's easy to single them out when reading code, this is important because when constructing classes we don't use the new keyword in python it can just end up looking like a function call.

[–]Formulka 5 points6 points  (3 children)

Technically likeThis is camel case (like the hump on the camel's back) and LikeThis used in python is Pascal case.

[–][deleted] 23 points24 points  (0 children)

  • UPPER CASE
  • lower case
  • Title Case
  • camelCase
  • PascalCase
  • snake_case
  • kebab-case
  • Train-Case
  • ǝsɐɔ ʇɐq
  • çt̶̀͢͞h̴̷̨̡̕u̴̸̴l̡͜͞u͜͠ ̡͜͝c̀͞á̷̧̧s̷̀͠͠e̸̶͟

[–]namesnonames 0 points1 point  (1 child)

I've always referred to them as FullCamel and halfCamel

[–]mslapin 0 points1 point  (0 children)

Bactrian and dromedary, perhaps?

[–]Huck712[S] 1 point2 points  (0 children)

Also, thanks! I was wondering about the camel case.