On Wed, Jan 30, 2013 at 2:40 PM, Camillo Bruni <[email protected]> wrote:
> I just wrote a simple classifier which is going to be used in Nautilus.
> Basically it is an extensions of the existing code.
>
> Methods are classified using the following rules:
>
> 1. known prefixes (initialize.* => initialize-reseleas, test.* -> testing..)

"testing" are typically reserved for methods that begin with the word
"is".  Methods beginning with "test" probably  should be under
"tests".

> 2. getters and setters of instance variables

Hmm.  Sometimes "accessing" is not always the right category for these
but I suppose it wouldn't hurt for it to start there most of the time.

> 3. know protocols of super implementors

I admit that is a good one.

> 4. gather all implementors in the system and choose the most used protocol.

You might consider to leave such methods exposed as uncategorized
rather than to "hide" them in an incorrect categories.

> I guess that will cover most stuff, of course known prefixes will have to be
> extended...

Reply via email to