What 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.
It's fun to talk to kids! Many of them are way more curious than most people are.
Conversations with a six-year-old on functional programming
31–40 of 319 posts
Re: Conversations with a six-year-old on functional programming
#32Re: Conversations with a six-year-old on functional programming
#33Re: Conversations with a six-year-old on functional programming
#34http://heinrichhartmann.com/blog/2016/06/12/Box-Counting-Ari...
It's a great joy to work with such gifted young minds.
Re: Conversations with a six-year-old on functional programming
#35Earlier quoted context omitted.
The child was stuck on the intuition that the argument must change in some way (i.e. that the function was linearly typed).
This and this: >> 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 don't really seem, to me, like they can explain what's happening -- f(x) = 6 is trivially easy to express in terms of arithmetic operations being applied to x. If you assume that a fu…
Obviously the fact that it doesn't seem to have any visible effect on the input -- and people expect the input to be affected.
Re: Conversations with a six-year-old on functional programming
#36Re: Conversations with a six-year-old on functional programming
#37Re: Conversations with a six-year-old on functional programming
#38Re: Conversations with a six-year-old on functional programming
#39Side question: maintenece of functional programs is easier, because you don't need to think about state. Could it be used to create a functional programming language, easily understood by non-programmers or beginners , so they too could take a program and adapt it to their needs ? Does such language exist ?
Maybe Pyret? https://www.pyret.org/
Re: Conversations with a six-year-old on functional programming
#40What 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.