On 8/25/13 3:57 PM, Joseph Rushton Wakeling wrote:
On 24/08/13 19:01, Ramon wrote:
I think that there is a lot speaking against sloc.

First it's often (ab?)used for "Ha! My language x is better than
yours. I can
write a web server in 3 lines, you need 30".

Don't know about a web server, but I remember somewhere online I found
this really cool 3-line quicksort that you can do in Haskell :-)

     qsort []     = []
     qsort (x:xs) = qsort (filter (< x) xs) ++ [x]
                    ++ qsort (filter (>= x) xs)

This is one of the worst PR functional programming has ever gotten, and one of the worst things FP has done to the larger community. Somebody should do hard time for this. And yes, for that matter it's a great example in which SLOCs are not a very good measure.

Andrei

Reply via email to