j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
I'm considering writing an alternative browser that would show the relative complexities of methods and maybe classes. Also maybe other atttributes. To do that I need a good definition of "what is a complex method?".
On a more concrete level, I'm looking for some sort of scoring system.
Some ideas - A primitive gets some points. Accessor methods and ^self methods are the simplest (I can think of). Simple mutators are a bit more complex. Message sends make a method more complex. (self sends add less complexity because the reciever type is known? how about super sends?)
How should conditionals, temporaries, variable accesses enter into the system?
How about other dimension? what other things can be practically detemined about a method? for example, whether it has side effects (directly). What else would you like to know about methods at a glance?
Does anyone have interesting references on this topic?
Daniel Vainsencher
squeak-dev@lists.squeakfoundation.org