Max length of a LOC: poll results (Was: On 80 columns...)
Tomek Sowiński napisał: Actually that's a splendid idea. Let's take it easy. Regardless of that silly beef I'm really curious what distribution will emerge. What is your preferred *maximum* length for a line of D code? (please reply with a number only) Alright, I'm wrapping up this toy study. Two things before the numbers come: - A few respondents gave 2 numbers, one reasonable, the other if I really have to. I took the latter (larger) number as I was after maximum length, something usable as a setting for a repository hook. - 2 respondents said no limit. I excluded them from computations, albeit it's a valid answer. 1 respondent answered 1 mole which I also excluded as a 22-order-of-magnitude outlier. lengths = c(80, 80, 110, 120, 80, 80, 100, 100, 120, 110, 90) summary(lengths) Min. 1st Qu. MedianMean 3rd Qu.Max. 80.00 80.00 100.00 97.27 110.00 120.00 sd(lengths) # standard deviation [1] 16.18080 quantile(lengths, c(.1, .25, .5, .75, .9)) 10% 25% 50% 75% 90% 80 80 100 110 120 library(moments) skewness(lengths) # take with a grain of salt, little data [1] 0.1645005 length(lengths) # count [1] 11 -- Tomek
Re: Max length of a LOC: poll results (Was: On 80 columns...)
Tomek Sowiński napisał: Alright, I'm wrapping up this toy study. Two things before the numbers come: - A few respondents gave 2 numbers, one reasonable, the other if I really have to. I took the latter (larger) number as I was after maximum length, something usable as a setting for a repository hook. - 2 respondents said no limit. I excluded them from computations, albeit it's a valid answer. 1 respondent answered 1 mole which I also excluded as a 22-order-of-magnitude outlier. Steven came in late with his datapoint, so once again: lengths = c(80, 80, 110, 120, 80, 80, 100, 100, 120, 110, 90, 80) summary(lengths) Min. 1st Qu. MedianMean 3rd Qu.Max. 80.00 80.00 95.00 95.83 110.00 120.00 sd(lengths) # standard deviation [1] 16.21354 quantile(lengths, c(.1, .25, .5, .75, .9)) 10% 25% 50% 75% 90% 80 80 95 110 119 skewness(lengths) # take with a grain of salt, little data [1] 0.3121957 length(lengths) # count [1] 12 -- Tomek
Re: Max length of a LOC: poll results (Was: On 80 columns...)
Tomek Sowiński wrote: 1 respondent answered 1 mole which I also excluded as a 22-order-of-magnitude outlier. What kind of a jerk is that respondent?