Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I think you're implying that one is easier to read than the other while it's the opposite for writing. You'd have to prove that first for the argument to make any sense.
-
I'm happy to read syntax anyway that the language says is best practice. Camelcaae is shorter but snakecase spreads out words. We read language with spaces between words (with some exceptions), so why not read variables the same way?
-
I have the opposite view.
camelCase is perfectly readable - the upper case letters make the word boundaries crystal clear, as much so as snake case. But it also takes up less space, therefore you can fit more code in a line and therefore read more without scrolling.
I therefore think it's equivalent on readability, but camel wins out on compaction. -
I use camelCase while working with js and snake_case while working with python, I've no issue with any of them.
-
Far more important than my opinion on the topic is the fact that this is not even close to valid reasoning and you're supposedly (probably) an engineer or scientist.
Code is read more that it is written.
So snake_case > camelCase.
Fight me!
rant