How do you name variables?

How do you name variables?
  • camelCase
  • snake_case
  • kebab_case
  • Pascal_Snake_Case
  • PascalCase
  • YEETcase
  • SCREAMING_SNAKE_CASE
  • camel_snake_case
  • Http-Header-Case
  • TRAIN-CASE
  • dUmbcAsE
  • UPPERCASE
  • flatcase
  • sTOPcASE
  • NoPeCaSe

0 voters

Poll not stolen from the discord poll.

If you have an idea for a future poll dm the idea.

2 Likes

I use snake case for variables and camel case for functions, but I also try to defer to the style of whatever framework or library Iā€™m using, so it ends up being mess lol

3 Likes

I too use many cases depending on the size of projects.

For teaching I stick with single case either of them according to language support.

1 Like

sTOPcASE is when you press shift with caps lock on

2 Likes

I mostly use camelCase, but prefer PascalCase for classes and sometimes objects and sometimes use SCREAMING_SNAKE_CASE for constants.

1 Like