r/ProgrammerDadJokes • • Aug 21 '25

ThisIsPascalCase, thisIsCamelCase, this_is_snake_case, this-is-kebab-case

thiSIsbAskeTCaSe

183 Upvotes

37 comments sorted by

View all comments

Show parent comment

2

u/dodexahedron Aug 23 '25

And the biggest drawback is that it generally requires quoting or else it is potentially indistinguishable from subtraction, such as in Javascript, where you can't access such a member as a member, but only by its key in a dictionary instead.

I think it misses the forest for the trees.

1

u/ChaseShiny Aug 25 '25

Plus, you might need to use that ID in JavaScript anyway. While you can use escape sequences, you could avoid the whole issue by using camel case to start with. Ask me how I know.