On 2013-01-30, at 21:53, Chris Muller <asquea...@gmail.com> wrote: > On Wed, Jan 30, 2013 at 2:40 PM, Camillo Bruni <camillobr...@gmail.com> 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".
right :) I even added 'testing' for the 'is' prefix further down the code :P >> 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. true, but as you say, it's the best guess we can do :) >> 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. maybe, but then again it's an auto categorizer, which will try to guess. currently methods are classified rather randomly...