Conversations with a six-year-old on functional programming
byorgey.wordpress.com
Conversations with a six-year-old on functional programming
1–10 of 319 posts
Re: Conversations with a six-year-old on functional programming
#2Just goes to show, our intuition works on linear types.
Re: Conversations with a six-year-old on functional programming
#3Re: Conversations with a six-year-old on functional programming
#4>\lambda x.\, 6 was also surprisingly difficult for him to guess (though he did get it right eventually). I think he was just stuck on the idea of the function doing something arithmetical to the input, and was having trouble coming up with some sort of arithmetic procedure which would result in 6 no matter what you put in! It simply hadn’t occurred to him that the machine might not care about the input. (Interesting…
Re: Conversations with a six-year-old on functional programming
#5Examples are such a useful tool to explain complex subjects and make them approachable.
Re: Conversations with a six-year-old on functional programming
#6What is truly astounding about this is the patience to even attempt to explain free theorems to a 6 year old. Most parents would likely answer "math" and that would be the end of it. I don't (yet) have kids, but when I do I hope I have the wherewithal to recognize and take advantage of moments like these.
Re: Conversations with a six-year-old on functional programming
#7What is truly astounding about this is the patience to even attempt to explain free theorems to a 6 year old. Most parents would likely answer "math" and that would be the end of it. I don't (yet) have kids, but when I do I hope I have the wherewithal to recognize and take advantage of moments like these.
Re: Conversations with a six-year-old on functional programming
#8Re: Conversations with a six-year-old on functional programming
#9beautiful read, thank you. Does anyone collect these educational inspirational stories?
Re: Conversations with a six-year-old on functional programming
#10>\lambda x.\, 6 was also surprisingly difficult for him to guess (though he did get it right eventually). I think he was just stuck on the idea of the function doing something arithmetical to the input, and was having trouble coming up with some sort of arithmetic procedure which would result in 6 no matter what you put in! It simply hadn’t occurred to him that the machine might not care about the input. (Interesting…
I'm curious what you mean. Is the problem that it is a constant function, or that you are asking them to ignore parameters? Or is that missing the point, still?