6

ThisAsAVariable
This_as_a_variable
thisasavariable

Preference?

Comments
  • 1
    I 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.
  • 1
    Language dependent. In java: thisIsAVariable
    In c/c++: this_is_a_variable.
  • 0
    Second one
  • 8
    thisAsAVariable
  • 0
    Snake_case
  • 0
    stuff1
    stuff2
    Stuffzorstuff

    Best notation
  • 0
    Anything but the f**** last one
  • 1
    @mazabin No, its only a matter of preference.
  • 0
    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.
Add Comment