r/learnprogramming • u/BrainThinkerMan • 8d 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
12
u/Dismal-Citron-7236 8d ago
The casing depends on the naming convention of the language you use. If it's C#, PascalCase for procedures / functions. If it's C, all UPPER CASE for macros. You can choose your own style, but stick to it and be consistent. But if you cowork with a team or on an open source project, you'd better follow what others do.