It would make me sad to type getSqrt(), getMin(), getMax(), getStrLen(), getSizeOf(), get…
Putting a verb in the function name is not a bad idea, but if you find yourself identifying the verb as “get”, then it’s a useless three extra letters.
Putting a verb in the function name is not a bad idea, but if you find yourself identifying the verb as “get”, then it’s a useless three extra letters.
theWindow
theUser
theFile
theLineCount
I hated it! I never did find out why people wanted to put in such a useless noise word in every single variable name, but I decided to never do it again.Make every word count.
foo OF bar
rather than bar.foo
but as you say, in code "the" is a noise word, so I'd resist. :)