quicksort :: (Ord a) => [a] -> [a]
quicksort [] = []
quicksort (x:xs) =
let smallerSorted = quicksort [a | a <- xs, a <= x]
biggerSorted = quicksort [a | a <- xs, a > x]
in smallerSorted ++ [x] ++ biggerSorted
Source: http://learnyouahaskell.com/recursion#hello-recursionhttp://www.ffconsultancy.com/products/fsharp_journal/index.h...
I'm considering the perspective that think clean code is this ideal that can be misused by reviewers to blackball otherwise good code for arbitrary personal reasons.
I know the book Clean Code and I like the ideas in it. I just haven't seen any production examples and I'm considering the idea that talking about clean code is a hand waving way to criticize others contributions without substance.