method names nounVerb or verbNoun
MRAB
python at mrabarnett.plus.com
Fri Feb 5 15:26:44 EST 2010
Wanderer wrote:
> Which is the more accepted way to compose method names nounVerb or
> verbNoun?
>
> For example voltageGet or getVoltage? getVoltage sounds more normal,
> but voltageGet is more like voltage.Get. I seem to mix them and I
> should probably pick one way and stick with it.
>
I would use the 'normal' order, which in this case is 'get_voltage'.
More information about the Python-list
mailing list