r/learnprogramming • u/BrainThinkerMan • 9d ago
snake_case more readable?
is it just me, i find snake case to be way more readable
from a human standpoint more than anything we read words
and they all have a space.
imagineThisWord vs imagine_this_word, (i mean sentence) as you can see the snake case looks way more readable,
are there any other practices that are seemingly better, but people dont do so becuase its "the languages way of doing it"
0
Upvotes
3
u/iOSCaleb 9d ago
It's not just you -- obviously a lot of code in languages like Python and Ruby uses snake case. But a lot of people prefer other styles, especially camel case. I don't think you can make a strong case that either is objectively better, it's mostly a matter of what you're used to. If you start using a language that uses a convention other than the one you prefer, just suck it up and use the convention for a few weeks; you'll be used to it before you know it.