Clean Coder Blog
CRANK

Mark Seeman (@ploeh) and I have been having a fun debate on twitter. It began with this tweet from me, which is part of a much longer tweet thread:As is usual, on social networks, many people posted rude and/or insulting comments. Those people aren’t important. Mark, on the other hand, came back with respectful and substantive replies which you can see by following the whole thread. It began this way:A spirited debate ensued. You may find it entertaining and educational to follow all the various threads. However, I want to focus on one of Mark’s replies. He tweeted about a blog he had written back in 2018. I encourage you to read it. You’ll learn something about testing, static typing, and Haskell. You’ll also learn something about how to debate with someone in the future by posting your refutation in the past. ;-)The problem Mark proposed in his blog is a simple function: rndselect(n,list). It returns a list of n elements randomly selected from the input list. He walked through h…

blog.cleancoder.com
Related Topics: Haskell Software testing Clojure