[Pharo-project] linesOfCode or another simple/understandable metric vaguely related to 'effort'
Hi: I see #linesOfCode in my image to get a basic idea of what I look at in terms of size. Are there any other 'simple' things? I have heard of Moose, but rather to visualize a system and to dig further into it. But I want rather to 'summarize' and 'compare'. Thus, the typical thing we often try to argue: I can do something with 'less effort'. I am not aware of anything that correlates better with effort than flipping a coin or linesOfCode. So, I would go with linesOfCode for the moment... Did anyone do the exercise to have a linesOfCode based on pretty printed sources? Hints to other tools are also appreciate. Thanks Stefan -- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525
Check the attached. Check the class side method #ghostStats as an example. Just print the result. Cheers On Wed, Jan 4, 2012 at 10:48 PM, Stefan Marr <smalltalk@stefan-marr.de>wrote:
Hi:
I see #linesOfCode in my image to get a basic idea of what I look at in terms of size.
Are there any other 'simple' things? I have heard of Moose, but rather to visualize a system and to dig further into it.
But I want rather to 'summarize' and 'compare'. Thus, the typical thing we often try to argue: I can do something with 'less effort'.
I am not aware of anything that correlates better with effort than flipping a coin or linesOfCode. So, I would go with linesOfCode for the moment...
Did anyone do the exercise to have a linesOfCode based on pretty printed sources?
Hints to other tools are also appreciate.
Thanks Stefan
-- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525
-- Mariano http://marianopeck.wordpress.com
Hi Stefan, Code Mariano sent is used for doing this stats: https://docs.google.com/spreadsheet/ccc?key=0Atnb1W9vuq9ndG4wbUpxNXpKQnFZRlF... and can be found also here: http://www.squeaksource.com/WebCodeStats.html Best regards Janko S, Mariano Martinez Peck piše:
Check the attached. Check the class side method #ghostStats as an example. Just print the result.
Cheers
On Wed, Jan 4, 2012 at 10:48 PM, Stefan Marr <smalltalk@stefan-marr.de <mailto:smalltalk@stefan-marr.de>> wrote:
Hi:
I see #linesOfCode in my image to get a basic idea of what I look at in terms of size.
Are there any other 'simple' things? I have heard of Moose, but rather to visualize a system and to dig further into it.
But I want rather to 'summarize' and 'compare'. Thus, the typical thing we often try to argue: I can do something with 'less effort'.
I am not aware of anything that correlates better with effort than flipping a coin or linesOfCode. So, I would go with linesOfCode for the moment...
Did anyone do the exercise to have a linesOfCode based on pretty printed sources?
Hints to other tools are also appreciate.
Thanks Stefan
-- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr <http://soft.vub.ac.be/%7Esmarr> Phone: +32 2 629 2974 <tel:%2B32%202%20629%202974> Fax: +32 2 629 3525 <tel:%2B32%202%20629%203525>
-- Mariano http://marianopeck.wordpress.com
-- Janko Mivšek Svetovalec za informatiko Eranova d.o.o. Ljubljana, Slovenija www.eranova.si tel: 01 514 22 55 faks: 01 514 22 56 gsm: 031 674 565
2012/1/4 Janko Mivšek <janko.mivsek@eranova.si>
Hi Stefan,
Code Mariano sent is used for doing this stats:
https://docs.google.com/spreadsheet/ccc?key=0Atnb1W9vuq9ndG4wbUpxNXpKQnFZRlF...
and can be found also here: http://www.squeaksource.com/WebCodeStats.html
Sorry I forgot to mention you did them ;) I am trying to remember if I change something but I think I didn't.
Best regards Janko
S, Mariano Martinez Peck piše:
Check the attached. Check the class side method #ghostStats as an example. Just print the result.
Cheers
On Wed, Jan 4, 2012 at 10:48 PM, Stefan Marr <smalltalk@stefan-marr.de <mailto:smalltalk@stefan-marr.de>> wrote:
Hi:
I see #linesOfCode in my image to get a basic idea of what I look at in terms of size.
Are there any other 'simple' things? I have heard of Moose, but rather to visualize a system and to dig further into it.
But I want rather to 'summarize' and 'compare'. Thus, the typical thing we often try to argue: I can do something with 'less effort'.
I am not aware of anything that correlates better with effort than flipping a coin or linesOfCode. So, I would go with linesOfCode for the moment...
Did anyone do the exercise to have a linesOfCode based on pretty printed sources?
Hints to other tools are also appreciate.
Thanks Stefan
-- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr <http://soft.vub.ac.be/%7Esmarr> Phone: +32 2 629 2974 <tel:%2B32%202%20629%202974> Fax: +32 2 629 3525 <tel:%2B32%202%20629%203525>
-- Mariano http://marianopeck.wordpress.com
-- Janko Mivšek Svetovalec za informatiko Eranova d.o.o. Ljubljana, Slovenija www.eranova.si tel: 01 514 22 55 faks: 01 514 22 56 gsm: 031 674 565
-- Mariano http://marianopeck.wordpress.com
S, Mariano Martinez Peck piše:
2012/1/4 Janko Mivšek <janko.mivsek@eranova.si <mailto:janko.mivsek@eranova.si>>
Code Mariano sent is used for doing this stats:
https://docs.google.com/spreadsheet/ccc?key=0Atnb1W9vuq9ndG4wbUpxNXpKQnFZRlF...
and can be found also here: http://www.squeaksource.com/WebCodeStats.html
Sorry I forgot to mention you did them ;) I am trying to remember if I change something but I think I didn't.
No problem Mariano, I just wanted to encourage Stefan to look at the code by impressing him with results :) Janko
Best regards Janko
S, Mariano Martinez Peck piše: > Check the attached. Check the class side method #ghostStats as an > example. Just print the result. > > Cheers > > On Wed, Jan 4, 2012 at 10:48 PM, Stefan Marr <smalltalk@stefan-marr.de <mailto:smalltalk@stefan-marr.de> > <mailto:smalltalk@stefan-marr.de <mailto:smalltalk@stefan-marr.de>>> wrote: > > Hi: > > I see #linesOfCode in my image to get a basic idea of what I look at > in terms of size. > > Are there any other 'simple' things? > I have heard of Moose, but rather to visualize a system and to dig > further into it. > > But I want rather to 'summarize' and 'compare'. > Thus, the typical thing we often try to argue: I can do something > with 'less effort'. > > I am not aware of anything that correlates better with effort than > flipping a coin or linesOfCode. > So, I would go with linesOfCode for the moment... > > > Did anyone do the exercise to have a linesOfCode based on pretty > printed sources? > > Hints to other tools are also appreciate. > > Thanks > Stefan > > > > -- > Stefan Marr > Software Languages Lab > Vrije Universiteit Brussel > Pleinlaan 2 / B-1050 Brussels / Belgium > http://soft.vub.ac.be/~smarr <http://soft.vub.ac.be/%7Esmarr> <http://soft.vub.ac.be/%7Esmarr> > Phone: +32 2 629 2974 <tel:%2B32%202%20629%202974> <tel:%2B32%202%20629%202974> > Fax: +32 2 629 3525 <tel:%2B32%202%20629%203525> <tel:%2B32%202%20629%203525> > > > > > > -- > Mariano > http://marianopeck.wordpress.com >
-- Janko Mivšek Svetovalec za informatiko Eranova d.o.o. Ljubljana, Slovenija www.eranova.si <http://www.eranova.si> tel: 01 514 22 55 faks: 01 514 22 56 gsm: 031 674 565
-- Mariano http://marianopeck.wordpress.com
-- Janko Mivšek Svetovalec za informatiko Eranova d.o.o. Ljubljana, Slovenija www.eranova.si tel: 01 514 22 55 faks: 01 514 22 56 gsm: 031 674 565
Hi: On 04 Jan 2012, at 23:34, Janko Mivšek wrote:
S, Mariano Martinez Peck piše:
Sorry I forgot to mention you did them ;) I am trying to remember if I change something but I think I didn't.
No problem Mariano, I just wanted to encourage Stefan to look at the code by impressing him with results :)
S, Mariano Martinez Peck piše:
Check the attached. Check the class side method #ghostStats as an example. Just print the result.
Thanks to both of you. Looks useful, indeed. A bunch of additional 'deceiving' metrics ;) Thanks Stefan -- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525
Hi Janko, Mariano: On 04 Jan 2012, at 23:34, Janko Mivšek wrote:
I derived the following from your WebCodeStats: I needed a bit more flexibility in terms of what to measure. Monticello package are to coarse grained, and I needed to handle extension methods separately, too. To have another number in addition to LOC, I also added the number of bytecodes. That number is less volatile to comments and white spaces. Thus, it should correlate slightly better with the 'complexity' aspect of the code. While LOC represents, as good as it can, 'maintainability'. Disclaimer: It is neither polished nor beautiful, and at least the #isOmniSelector call is specific to my stuff. But, well, might be useful start for someone out there. Best regards Stefan -- Stefan Marr Software Languages Lab Vrije Universiteit Brussel Pleinlaan 2 / B-1050 Brussels / Belgium http://soft.vub.ac.be/~smarr Phone: +32 2 629 2974 Fax: +32 2 629 3525
participants (3)
-
Janko Mivšek -
Mariano Martinez Peck -
Stefan Marr