101

The hardest decision in any devs day is what to name the variable

Comments
  • 1
    name the variable when all logical names are taken*

    #codeconventions
  • 0
    Omg this is so true and it is so disrupting for the flow. But i have found a way to avoid this, I just name the variable something temporary and then after a bit when I have thought about it, i refactor.
  • 0
    No kidding. It's always so hard
  • 1
    var var1, var2, var3, var4, var5;

    Simples
  • 0
    So true
  • 0
    @kwilliams I don't have the luxury of dynamically typed variables :(
  • 1
    What about gettingTheNameForSomeHelperFunction()
  • 1
    Using confusing names. Your client will have to come back to you to get anything changed :P
Add Comment