DEV Community

loading...

Discussion on: snake_case, camelCase, or dash-case?

Collapse
osde8info profile image
Clive Da

dash-lower-case for me :) no stupid case switching ever

Collapse
yujiri8 profile image
Ryan Westlund Author

That doesn't work in most languages, though, does it? What do you do in languages that don't allow - in names?

Collapse
chaos0815 profile image
Christian Wolf

Problem with dash-case is that double clicking will not select the entire name.

Collapse
yujiri8 profile image
Ryan Westlund Author

Ooh, that's something that never even occurred to me. I don't really use double-clicking to select text, but it's an interesting point. A lot o environments can customize what counts as a word divider (eg. xfce4-terminal), but I guess that might mess up other things.