+ 15

Which is better snake case or camel case???

3rd Apr 2019, 9:45 AM
Nasir❤
Nasir❤ - avatar
5 Réponses
3rd Apr 2019, 9:50 AM
GAWEN STEASY
GAWEN STEASY - avatar
+ 7
For Android I suggest camelCase. Infact I only use snake_case in Python and Ruby among the languages I use most. Otherwise it's a matter of taste but I prefer something conventional
4th Apr 2019, 3:37 PM
Dan Rhamba
Dan Rhamba - avatar
+ 5
Each language has its own conventions and styling guides... Which is more or less respected by developers. Python tends to go with snake_case and Java goes with camelCase OOP class names usually begin with capital letters and methods/functions begin with lowercase.
4th Apr 2019, 10:21 AM
Tibor Santa
Tibor Santa - avatar
+ 4
IMHO snake case is easier to read when names are longer but modern OO languages seem to prefer camel case.
4th Apr 2019, 3:15 AM
Sonic
Sonic - avatar
0
postgreSQL is easier with snake_case
17th Feb 2020, 3:34 PM
Tim
Tim - avatar