in reply to How do you pronounce variable names?

If I'm showing code to someone, there's usually no need to pronounce the sigil at all (e.g. "friends has 2 elements"). I'd probably be more likely to say "scalar" and "array" for "$" and "@" in this situation. I might even call the variable by its value instead of by its name (e.g. "Then I 'draw' the circle." for $form->draw()).

If I'm dictating code, completeness and clarity is important, so I'd specify the symbols by name (e.g. "dollar friends equal 2 semicolon.").

Replies are listed 'Best First'.
Re^2: How do you pronounce variable names?
by holli (Abbot) on Feb 18, 2008 at 17:02 UTC
    Ok, I'll bite. When and under hat circumstances are you "dictating" code?


    holli, /regexed monk/
      When I'm writing code using Microsoft Speech Recognition. It goes something like this:
      me: my dollar sign t=1; computer: my dolls are singing tequila 1 semi goin;

      I'm not really a human, but I play one on earth. Cogito ergo sum a bum
      Yes, inquiring minds need to know. (Interviews, perhaps?)
      When discussing or teaching syntax