Re: method names nounVerb or verbNoun

2010-02-11 Thread Martin P. Hellwig
On 02/05/10 19:53, 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

Re: method names nounVerb or verbNoun

2010-02-11 Thread cjw
On 05-Feb-10 14:53 PM, 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

Re: method names nounVerb or verbNoun

2010-02-08 Thread Wanderer
> > >> > 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 m

Re: method names nounVerb or verbNoun

2010-02-06 Thread Carl Banks
On Feb 5, 3:36 pm, Chris Rebert wrote: > On Fri, Feb 5, 2010 at 2:45 PM, Steven D'Aprano > > wrote: > > For instance, if getting or setting the voltage is an expensive > > operation, you don't want to fool the user into thinking it is a cheap > > attribute access. > > I strongly disagree with thi

Re: method names nounVerb or verbNoun

2010-02-05 Thread Chris Rebert
On Fri, Feb 5, 2010 at 2:45 PM, Steven D'Aprano wrote: > On Fri, 05 Feb 2010 12:26:38 -0800, Chris Rebert wrote: >> On Fri, Feb 5, 2010 at 11:53 AM, Wanderer >> wrote: >>> Which is the more accepted way to compose method names nounVerb or >>> verbN

Re: method names nounVerb or verbNoun

2010-02-05 Thread Steven D'Aprano
On Fri, 05 Feb 2010 12:26:38 -0800, Chris Rebert wrote: > On Fri, Feb 5, 2010 at 11:53 AM, Wanderer > wrote: >> Which is the more accepted way to compose method names nounVerb or >> verbNoun? >> >> For example voltageGet or getVoltage? getVoltage sounds more nor

Re: method names nounVerb or verbNoun

2010-02-05 Thread Steven D'Aprano
On Fri, 05 Feb 2010 11:53:08 -0800, Wanderer wrote: > Which is the more accepted way to compose method names nounVerb or > verbNoun? > > For example voltageGet or getVoltage? getVoltage sounds more normal, +0.5 for getVoltage +1 get_voltage -1 for voltageGet or voltage

Re: method names nounVerb or verbNoun

2010-02-05 Thread Wanderer
On Feb 5, 4:53 pm, Chris Rebert wrote: > On Fri, Feb 5, 2010 at 1:49 PM, Wanderer wrote: > > On Feb 5, 3:26 pm, Chris Rebert wrote: > >> On Fri, Feb 5, 2010 at 11:53 AM, Wanderer wrote: > >> > Which is the more accepted way to compose method names nounVerb or

Re: method names nounVerb or verbNoun

2010-02-05 Thread Alf P. Steinbach
* Wanderer: On Feb 5, 3:26 pm, Chris Rebert wrote: On Fri, Feb 5, 2010 at 11:53 AM, 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

Re: method names nounVerb or verbNoun

2010-02-05 Thread Chris Rebert
On Fri, Feb 5, 2010 at 1:49 PM, Wanderer wrote: > On Feb 5, 3:26 pm, Chris Rebert wrote: >> On Fri, Feb 5, 2010 at 11:53 AM, Wanderer wrote: >> > Which is the more accepted way to compose method names nounVerb or >> > verbNoun? >> >> > For example v

Re: method names nounVerb or verbNoun

2010-02-05 Thread Wanderer
On Feb 5, 3:26 pm, Chris Rebert wrote: > On Fri, Feb 5, 2010 at 11:53 AM, 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 voltageG

Re: method names nounVerb or verbNoun

2010-02-05 Thread MRAB
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

Re: method names nounVerb or verbNoun

2010-02-05 Thread Chris Rebert
On Fri, Feb 5, 2010 at 11:53 AM, 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

Re: method names nounVerb or verbNoun

2010-02-05 Thread Gerald Britton
On Fri, Feb 5, 2010 at 2:53 PM, 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

method names nounVerb or verbNoun

2010-02-05 Thread Wanderer
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. Thanks -- http://mail.python.org