18
bahua
7y

What kind of variable conventions do you use?

timesincereseat
TimeSinceReseat
timeSinceReseat
TIMESINCERESEAT
TIME_SINCE_RESEAT
time_since_reseat
global{'tsr'} # so nobody can read it :)

Comments
  • 4
    3 for variables, 1 for method/function/class names, 5 for constants.
    Have seen 7 too many times. Why does anybody think that's a good idea? Or do people who write such code even think at all?
  • 1
  • 1
    @Hu-bot0x58

    I've not seen it a lot, but I've seen it.
  • 2
    _privateVars
    PublicVars
    muParameters
    in_scope
    i / a for loops and LINQ
  • 4
    normalVariablesAndMethods
    ClassNames
    NAMES_FOR_CONSTANTS
    db_stuff
  • 3
    2nd for Ruby module/class
  • 1
    TimeSincereSeat 1 is just lame..

    Depends on the language

    Cpp

    TimeSinceReseat.timeSinceReseat()

    Python?
    TimeSinceReseat.time_since_reseat()
  • 0
    Publicclass
    function/method
    _apifunction
    __magicfunction
  • 1
    2 for functions
    5 for constants
    6 for variables
    Pls don’t kill me 😅
  • 2
    All and others depending on project and language and
  • 3
    Depending on the programming language 😉
  • 0
    2 method
    3 variable
    6 db names
Add Comment