7
nun3z
5y

short variables names, long variable names, nonsense variable names

Comments
  • 5
    Pokémon as variable names
  • 3
    @heyheni thanks I needed that
  • 7
    I had a professor in college that if he felt people weren't paying enough attention he would start drawing little pictures for the variable names (this was before emojis were a thing), so you'd have to look at all the white boards to see where the stick figure man was defined and why he was using the address of the duck.
  • 4
    does anyone else use them as a descriptor?

    file_output = open(...
    fileBuffer = tempfile.SpooledTemporaryFile(...
    loopnum = 32768
    file-length = len(...

    this is just natural for me at this point, do you all not do this?
  • 1
    @Parzi basically. I tend to use very long names sometimes, to keep it very clear what it is.
  • 1
    I prefer descriptive and informative variable name
  • 1
    I prefer names proportional to their scope. Small scope, short names.
    Larger scope, more descriptive names.
  • 1
    Variables names in unicode chars
Add Comment