There is no such thing as too lengthy comments or too many comments as far as me is concerned
Actually I would prefer if all that effort you are asking here would be spent on documenting those libraries in the first place. Trying to figure out Morphic by reading code is definetly not fun.



From: Sven Van Caekenberghe <sven@stfx.eu>
To: A friendly place where any question about pharo is welcome <pharo-users@lists.gforge.inria.fr>
Sent: Tuesday, 18 December 2012, 10:43
Subject: [Pharo-users] Nautilius Method Source Pane Coloring

Hi,

The way Nautilus colors method source panes is absolutely great: if reminds you of paying attention to long methods in a gentle way.

However, right now the metric is 'number of characters in method source', while it should be more related to complexity.

For example, using long names for variables or messages will be counted as negative towards this metric. Worse even, lots of comments, which is good most of the time, also counts as negative.

Number of nodes in the AST would be one solution, but maybe a too expensive one.

Maybe quickly scanning for tokens while skipping whitespace and comments and then counting the tokens would be doable ?

Sven

--
Sven Van Caekenberghe
http://stfx.eu
Smalltalk is the Red Pill