I'm from Java/Dart background, I also had a similar question for python.
I was thinking why we should type 1 more "_", of course this will take very short time for 1 variable or 1 method, but we will have many of them in a program.
I don't mean underscore is bad, it depends on what you prefer!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Never use any of those.
One reason: In some RDBMS, column name is insensitive about those cases.
Use
first_name
instead offirstName
, orFirstName
and you'll always be fine.Yep, even in php, function names are case insensitive. A call to
someFunc()
orSomeFunc()
or evensomefunc()
all go to the same function.I see some devs prefer
firstName
overfirst_name
, which i see is a way to confusion if you use , for example PostgreSQL as column name.I don't understand why they prefer that option. Maybe because it's "prettier" ?
I'm from Java/Dart background, I also had a similar question for python.
I was thinking why we should type 1 more "_", of course this will take very short time for 1 variable or 1 method, but we will have many of them in a program.
I don't mean underscore is bad, it depends on what you prefer!