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
-
Voxera113888yI usually use the first for properties and methods.
But if I have long names i sometimed use the second to easier se the parts.
For private I start with s lower case and prefix with _ for fields. -
Actually its not just preference but more a matter of convention. As you probably know for many languages there is some set of coding conventions and guidelines that result in the benefits of everyone using the same style and thus makes the code more readable. In the end it is indeed a matter of preference but if every dev out there would stick to his/her own conventions it would all become a great mess.
ThisAsAVariable
This_as_a_variable
thisasavariable
Preference?
undefined