From: Alexey Petrushin Date: 2011-08-11T09:49:15+09:00 Subject: Re: flay 1.4.3 Released just curious, according to power law (http://en.wikipedia.org/wiki/Power_law) there should be 20% of language constructs (structural patterns) that are used 80% of time. It would be interesting to process with flay let's say about hundred of most popular gems and collect pattern usage statistics. To answer the question - what of the ruby constructs and structural patterns are used most often? And then we can apply these statistical knowledge to shape the API of the ruby itself, to make these most used constructs and patterns more simple and compact. I created very basic tool that demonstrates how the power law applied to the size of sources, http://ruby-lang.info/blog/code-statistics-and-the-power-law-paretto-80-20-rul-hqo Whould be interesting to see how it's applied to the syntaxis and the structure of the ruby code. P.S. Actually 20% is too wide, we don't need them all. But because the Power law has the property of self-similarity, in these most used 20 percents there alre also 20 most used percents (and so on). And these 4% (20% of 20%) are covering 64% (80% of 80%) of all patterns used in code. -- Posted via http://www.ruby-forum.com/.