4 ms·
What's wrong with camelCase? It's easier to type than snake
by skohan 5y ago
What's wrong with camelCase? It's easier to type than snake
- thrwyoilarticle 5y agoThere's a tendency away from snake_case and towards kebab-case in things you interact with via CLI. Even moreso towards nocase. Programs like Powershell eschew ease of use in CLI for readability in scripts.
- pvaldes 5y agoSnake_case is problematic for including filenames in TeX also. This is a big no for me, even if I find it more readable than the other.
- JadeNB 5y ago> Even moreso towards nocase. Nocase (did I break a rule by writing it that way?) seems great when you're enmeshed in the domain and you can see the implicit separators, but then someone looks at your naming from the outside and you're guaranteed to have an 'expertsexchange' in there somewhere.
- thrwyoilarticle 5y agooh, fsck
- rk06 5y agoPowershell is case-insensitive, so camelCase is only a writing preference
- thrwyoilarticle 5y agoIt's still verbose in places
- chrismorgan 5y agocamelCase is objectively harder to read than snake_case or kebab-case, though familiarity can mitigate that.
- skohan 5y agoI'd argue it's at most a tiny bit harder to read, and a lot easier to type. On balance I'd rather avoid making a pinky key one of the keys I have to use the most.
- daneel_w 5y ago"On balance I'd rather avoid making a pinky key one of the keys I have to use the most." And you use something else than your pinky finger for the shift key specifically when typing capitalized letters for camelCase?
- skohan 5y agoAt least it's where they sit naturally on the keyboard. And the shift key is wider specifically so you don't have to be accurate with your pinky when you're pressing it. The underscore is one of the least ergonomic keys there is. And you need both pinkies to do it
- daneel_w 5y agoI might be misunderstanding. On all layouts I'm familiar with the underscore key is directly next to one of the shift keys, or left of backspace. Neither layout requires the Vulcan death grip. Shift should always be under your pinky fingers to avoid contortions.
- skohan 5y agoOn the US layout it is next to the zero key on the top row.
- frenchyatwork 5y ago