I am here reassessing my goals. Haskell seems way down on my list. Guitar-playing might make me happier. Or, getting better at convincing people of using testing when developing stuff.
So, no Haskell progress. I need me a partner in learning on this. It’s too hard to do yourself.
Oct 28, 2008, 12:14AM PDT | 0 comments
I was over at my Haskell buddy Olav’s, and he talked Haskell with me for a couple hours.
His definition of monads was very good, at least to growing my understanding: “They implement the imperative programming paradigm that is going to be used in the imperative parts of your program.”
We looked at the List monad, the IO monad, and also some random-number generation stuff. He had done a Markov chain maker, which we ran on some text. Pretty neat: the thing that took up most of the code was getting a new Random number each time you entered the Random monad (is there one of those?).
The Markov chain program used “take 50” from an infinite list. Infinite lists, they seem to be a staple of functional style. How do you use them?
Sep 07, 2006, 06:45AM PDT | 1 cheer | 0 comments