News for hackers. Stuff that matters.
Re:Conversations with a six-year-old on functional programmi... by jpz on Wednesday April 22, 2020 @07:54AM (#22944584)
"He gasped in astonishment at the idea of putting function machines into function machines"

"He gasped in astonishment as I carefully explained the results of the double-slit experiment."

Surely more like that this describes a 6yo kid being excited about something their parent is excited about and a product of implicit empathy, than any significant insight?

I hate to lose reputation with downvotes for sounding negative, but I find my credulity challenged with this story.

Re:Conversations with a six-year-old on functional programmi... by jerf on Wednesday April 22, 2020 @09:38AM (#22945382)
"Surely more like that this describes a 6yo kid being excited about something their parent is excited about and a product of implicit empathy, than any significant insight?"

Also possible is that what the kid actually understands and what the parent thinks they are understanding are two different things. The kid is quite likely still wrong in some critical way.

But that is where we all start with new things. I've got two boys in 3rd & 5th grade right now and I'm actively fighting with both of them the idea that "learning" is a matter of being told the correct answer and then they forever after know the correct answer in its every nuance. (Not just since the lockdown. It's been a theme for the past six months with me.)

The older one has just started learning Spanish with school... well... nominally with the school, that's actually going very badly, but I started him on Duolingo in the meantime... and that's been a very good doorway into the idea that you can't just be exposed to a single isolated fact once and then have it just magically be internalized, you need to be re-exposed to it over and over, use it, practice it, and discover how your initial impressions were wrong over time.

Re:Conversations with a six-year-old on functional programmi... by darkerside on Wednesday April 22, 2020 @10:07AM (#22945686)
Education is a series of increasingly smaller lies
Re:Conversations with a six-year-old on functional programmi... by JadeNB on Wednesday April 22, 2020 @10:47AM (#22946108)
> Education is a series of increasingly smaller lies

Could you be swayed to the more optimistic "Education is a series of decreasingly incomplete truths"? I'm a math professor, and we do tend to be able to tell our students the truth, nothing but the truth, but very much not the whole truth, at least in every part of the curriculum that I've seen.

(That we're able to do so doesn't mean no math teachers lie, but it's not as integral—ha!—a part of the curriculum as in physics, say.)

Re:Conversations with a six-year-old on functional programmi... by wolf550e on Wednesday April 22, 2020 @11:41AM (#22946735)
In my school, I was lied to by teachers instead of just saying "we will get to that later" or something. For example:

Q. how much is 3 - 5?

A. nothing because you cannot take 5 out of 3.

Q. how much is 2 divided by 3?

A. nothing because you cannot divide 2 by 3.

Q. what are the roots of the quadratic function ...?

A. this quadratic function doesn't have roots because you can't take the square root of a negative number

I believe it's possible to not lie when teaching math, but I guess it's harder to do.

Re:Conversations with a six-year-old on functional programmi... by StandardFuture on Wednesday April 22, 2020 @12:31PM (#22947362)
To be fair, this is not a lie. The teachers were unknowingly giving you a Type-Theoretic answer. The answer to your questions change dependent on the Number Type you are calculating with. :)
Re:Conversations with a six-year-old on functional programmi... by JadeNB on Wednesday April 22, 2020 @11:48AM (#22946826)
To be sure, there is a habit to make the teacher's life easier by lying, and I certainly believe you when you say that you were lied to; but all of these can be rescued, as a sequence of decreasingly incomplete truths, just by adding quantifiers. Since the human brain is (excessively) good at ignoring quantifiers, a skilled teacher (not me, in this context—I'm a college teacher, so am not claiming that this is the right language for primary schoolers, just that it's true) can speak truthfully without impairing the pedagogy:

Q. how much is 3 - 5?

A. taking 5 out of 3 does not give a whole-number answer.

Q. how much is 2 divided by 3?

A. dividing 2 by 3 does not give an integer answer.

Q. what are the roots of the quadratic function ...?

A. this quadratic function doesn't have real roots because you can't take a real square root of a negative number

Re:Conversations with a six-year-old on functional programmi... by Viliam1234 on Wednesday April 22, 2020 @01:57PM (#22948325)
> A. this quadratic function doesn't have real roots because you can't take a real square root of a negative number

This one is actually true. If someone tells you they have a square root of a negative number, just laugh at them and tell them it's just imaginary.

Re:Conversations with a six-year-old on functional programmi... by darkerside on Wednesday April 22, 2020 @04:47PM (#22950013)
This was certainly meant to toe the line, but mostly tongue in cheek. I don't attribute malice to educators. I respect the hell out of the good ones. But at the very least, lies of omission are common.

It's more of a commentary on how humans think and learn, not a judgement on how they teach. I think there's an interesting philosophical debate to be had around whether it's ethical to bootstrap knowledge through a lie, later discarded, if that results in more efficient knowledge transfer than the straight truth.

It's parallel to what I've heard about the trouble with history bring. You just never know exactly where to start.

Re:Conversations with a six-year-old on functional programmi... by JadeNB on Wednesday April 22, 2020 @05:04PM (#22950166)
> It's parallel to what I've heard about the trouble with history bring. You just never know exactly where to start.

Mathematics offers an opportunity here that history doesn't: there is a definite starting point, namely, the axioms. Not every course can or should start at the axioms, but it is there as an option, as it isn't with history.

Even so, this point is a very interesting one. I hated history in grade school, but then stumbled upon Shirer's Rise and Fall of the Third Reich while browsing the shelves one day. It hooked me, but made reference to a lot of WWI history that I didn't know, so I started reading about WWI history. But, to understand the antipathies in WWI, you have to go back even further in European history ….

This hunt backwards for first causes has led me to Wilson's Heart of Europe, which traces the history of the Holy Roman Empire. It's a struggle, because it's much more on the scholarly than the popular side of things to which I am accustomed, but I'm engaged in it because it's helping me answer questions that I posed, rather than ones that my history teachers both posed and, all too soon, answered.

I think that the best education, lies or no, is the one that both leaves students asking their own questions, and equips them with the tools to seek out the answers to those questions themselves.

Re:Conversations with a six-year-old on functional programmi... by nikofeyn on Wednesday April 22, 2020 @11:52AM (#22946875)
i think that the optimism comes from you're the one telling the incomplete truths or lies and not the one hearing them. when i was in graduate school for mathematics, it indeed felt that i had been lied to in undergraduate school. also, i think people are being a bit facetious when they say lie as well, but there's a kernel of truth to it.
Re:Conversations with a six-year-old on functional programmi... by JadeNB on Wednesday April 22, 2020 @02:42PM (#22948805)
> when i was in graduate school for mathematics, it indeed felt that i had been lied to in undergraduate school.

I'd be interested to hear more about that. Standard US undergraduate mathematics curriculums are aggressively non-"the whole truth", but they rarely lie. (Sometimes there'll be less attention than a professional mathematician might like on checking hypotheses, but, in my experience, they're always there for someone who cares to check.) What lies did you feel like you'd been told?

(I mean, of course, content lies. Implicit pedagogical lies like "what you see and do in undergraduate mathematics classes faithfully represents the graduate and research mathematics experience" are unfortunate, and won't go away as long as the audience for math courses is made up much more of people who want to apply it in other disciplines than people who want to be mathematicians, but I think they are of a different character.)

Re:Conversations with a six-year-old on functional programmi... by zinclozenge on Wednesday April 22, 2020 @12:21PM (#22947245)
Physics education is learning the simple harmonic oscillator with increasing levels of sophistication
Re:Conversations with a six-year-old on functional programmi... by barry-cotter on Wednesday April 22, 2020 @11:43AM (#22946762)
> A lie-to-children (plural lies-to-children) is a simplified explanation of technical or complex subjects as a teaching method for children and laypeople. The technique has been incorporated by academics within the fields of biology, evolution, bioinformatics and the social sciences. It is closely related to the philosophical concept known as Wittgenstein's ladder.

https://en.wikipedia.org/wiki/Lie-to-children

Re:Conversations with a six-year-old on functional programmi... by thomaslkjeldsen on Wednesday April 22, 2020 @12:41PM (#22947463)
> I've got two boys in 3rd & 5th grade right now and I'm actively fighting with both of them the idea that "learning" is a matter of being told the correct answer and then they forever after know the correct answer in its every nuance.

So there is a difference between insisting on being right and acknowledging the possibility of being wrong.

However, this reminds me of the book "Factfulness" where Hans Rosling shows how most of us rely on outdated information (that we were taught decades ago) when asked about the current state of the world. We simply fail to update our knowledge.

The book is highly recommended.

Re:Conversations with a six-year-old on functional programmi... by dmurray on Wednesday April 22, 2020 @04:28PM (#22949829)
I think he goes further than that: even young people have outdated knowledge in accordance with some predictable biases. We rely on the information because it fits some narrative we believe about the world, not because we learnt it when it was correct 30 years ago.
Re:Conversations with a six-year-old on functional programmi... by jonahx on Wednesday April 22, 2020 @02:12PM (#22948484)
These concepts -- at the level of detail described in the article -- are well within the grasp of a bright six year old.
Re:Conversations with a six-year-old on functional programmi... by ummonk on Wednesday April 22, 2020 @01:20PM (#22947923)
I’d be willing to bet you could, for example, explain to a smart 6 year old what the “composition machine” or the “inversion machine” does.
Re:Conversations with a six-year-old on functional programmi... by wrsh07 on Wednesday April 22, 2020 @10:00AM (#22945618)
I'm not going to downvote you but this is pretty joyless

Just because the writing is not up to your standards doesn't mean the kid wasn't astonished when they realized you could put a function in a function. Kids love meta stuff (there's a book my niece & nephew were talking about and they were like "it's so weird!!" -- it was meta)

Also it's not that hard of a concept. Give kids some credit.

Re:Conversations with a six-year-old on functional programmi... by smt88 on Wednesday April 22, 2020 @10:29AM (#22945927)
> Kids love meta stuff

Agreed!

> doesn't mean the kid wasn't astonished when they realized you could put a function in a function

This is where my credulity was stretched. It's interesting and exciting when you first learn about it only if it breaks a rule you've long had in your mind and enables you to do more interesting things.

A 6-year-old child hadn't spent years assuming you can't put a function in a function, and they'd have not the slightest idea what you could now do with it.

Generally, very small children have very flexible ideas about the structure and rules of the physical world, so showing them "math tricks" often earns you a, "Duh, of course you can do that!" reaction when you instead expect astonishment. The exception is when they've been doing painful work the slow way and you've given them a shortcut.

Re:Conversations with a six-year-old on functional programmi... by fao_ on Wednesday April 22, 2020 @10:49AM (#22946113)
> This is where my credulity was stretched. It's interesting and exciting when you first learn about it only if it breaks a rule you've long had in your mind and enables you to do more interesting things.

It's still a new way of using a new idea. People (including children) pick up all kinds of assumptions along with the information that they obtain. If you describe something with certain examples, and then do something that isn't seen as possible or covered in those examples, that can be very surprising.

Different children are different people and therefore have different expectations and blindspots.

Re:Conversations with a six-year-old on functional programmi... by fao_ on Wednesday April 22, 2020 @10:47AM (#22946104)
This. Programming isn't difficult, you can teach it to an adult in a one-week course and I've taught the fundamentals (if statements, functions, loops) in a two hour session with multiple adolescent friends, the core concepts are mostly intuitive for anyone with a simple grasp of logic. What is difficult is using those systems to understand larger systems, and all of the other crap that comes in programming.

In the last week I have a deal with a friend of mine -- I didn't feel comfortable accepting a gift from him in return for nothing, so I offered to teach him programming. So far, two one-hour sessions later he has a grasp of a lot of the concepts, but the two main things he struggles with are: the environment (i.e. stuff like the command line, etc.), and syntax. I'm teaching him python, in the first one-hour session we learned about variables includings lists and integers, if statements, statements/expressions, and function syntax. We used the second session to refamiliarize some of the syntax for those things, including stuff like telling him about leading whitespace, putting brackets around array indices, and the rest of the time just getting a python file into a folder and getting there in the command line so he could run the file.

He's a very smart person, but his lack of familiarity with the symbol keys on the keyboard, along with the lack of the ability for the command line to cope with spaces in filenames, made it difficult for him.

His main problems aren't knowing how to use the concepts -- he knows what he wants to do -- but the syntax and grammar of the environment constantly get in his way.

Re:Conversations with a six-year-old on functional programmi... by TheSpiceIsLife on Wednesday April 22, 2020 @11:09AM (#22946361)
> along with the lack of the ability for the command line to cope with spaces in filenames

Put quotation marks around the file name?

Re:Conversations with a six-year-old on functional programmi... by wrsh07 on Wednesday April 22, 2020 @11:16AM (#22946425)
It's hard for people new to programming or talking to a computer to understand how to be precise enough

And I think filenames with spaces is a great example of this

Re:Conversations with a six-year-old on functional programmi... by fao_ on Wednesday April 22, 2020 @11:16AM (#22946429)
sure, it's an easy fix, but it's one more hurdle to jump across.
Re:Conversations with a six-year-old on functional programmi... by IggleSniggle on Wednesday April 22, 2020 @11:49AM (#22946833)
Exactly. And when the inevitable "but why?" comes, you can either say "don't worry about it for now, magic" (disempowering) or explain the actual reason why...when you have lots of these little segues simple tasks and simple concepts become suddenly complex. There's a lot to take in, and although the fix is simple, it's yet one more thing to hold onto that can be imprecisely remembered.

If the next time they sit down to do something at the command line they write the equivalent of `cmd "arg 1 arg 2 arg 3"` it should not be surprising, and frustration that it doesn't work as intended should be expected... especially when they're not even trying to learn about their command line in that moment.

Re:Conversations with a six-year-old on functional programmi... by thebigshane on Wednesday April 22, 2020 @10:31AM (#22945955)
Do you recall the name of the book?
Re:Conversations with a six-year-old on functional programmi... by wrsh07 on Wednesday April 22, 2020 @06:51PM (#22951059)
Story Thieves: The Stolen Chapters
Re:Conversations with a six-year-old on functional programmi... by surajs on Wednesday April 22, 2020 @09:39AM (#22945396)
That the child was able to access insights into something new is dimmed in no way by your causal understanding of implicit empathy. This is partly a failure of the writer to convey with precision, what the kid went through in that exact moment. That the kid was genuinely receptive towards the subject because his dad is into it has little bearing on the micro-epiphany he must have gone through. If only we could all retain that sense of wonder with age.
Re:Conversations with a six-year-old on functional programmi... by s_gourichon on Wednesday April 22, 2020 @08:01AM (#22944614)
> 6yo kid being excited about something their parent is excited about and a product of implicit empathy, than any significant insight?

Which is perfectly fine. A young child cannot judge by themselve, so they rely on their parent's judgment which is conveyed by emotion.

I played the game an hour ago during family lunch, with my kids aged 15 and nearly 12. It still works!

I upvote.

Re:Conversations with a six-year-old on functional programmi... by gen220 on Wednesday April 22, 2020 @09:30AM (#22945310)
This reminds me of one of my favorite stories in This American Life, about a very young daughter who has a lot of questions, and her dad (a professor) asks her to write them down. She comes to him with a list with questions like “are we alive? Explain.”

I don’t want to spoil it, but it’s simultaneously hilarious and a tear jerker. They just replayed it a few weeks ago, you can listen to the climax and conclusion here: https://www.thisamericanlife.org/697/alone-together/act-one-...

Re:Conversations with a six-year-old on functional programmi... by alexpetralia on Wednesday April 22, 2020 @09:32AM (#22945337)
This is a great episode.

My favorite quote of hers was (paraphrasing): "I just wanted someone to talk to."

Re:Conversations with a six-year-old on functional programmi... by whateveracct on Wednesday April 22, 2020 @10:21AM (#22945845)
I mean, 6 year olds get excited about all sorts of learning because their proper teachers are enthusiastic. But that enthusiasm helps them enjoy learning real things. And the concepts in the blog post aren't much more complicated than the other fundamentals children learn at that age. So like learning addition and reading, it's probably both the excitement of learning and the mirroring of their teacher.
Re:Conversations with a six-year-old on functional programmi... by mikorym on Wednesday April 22, 2020 @08:21AM (#22944743)
Wait, how do you get from function spaces to the double-slit experiment? Or is it just for illustration of two moments...

With regards to your message, I think it's impossible to say whether another person understands something well from reaction. Unfortunately, that is why student focused textbooks (vs. graduate textbooks) usually have a lot of exercises.

Edit: By the way, on a somewhat unrelated topic, I have been told that Lawvere thought that set theory was a "historical error" (these kind of semi-biographical stories are code for trying to explain a mathematician's personality, a futile exercise). I wonder if I'll ever be able to meet him and ask him why he thinks that. (I suspect that it will lead to some Lisptopians becoming excited about objects being immaterial. At which point one should remind Lisptopians not to mix programming the activity with mathematics the activity.) It's ironic that set theory is the best way to learn category theory, at which point you to some extent abandon set theory. Maybe it's the pedagicical value of set theory? I wonder if Lawvere would take all my persistent questions kindly.

Re:Conversations with a six-year-old on functional programmi... by jshevek on Wednesday April 22, 2020 @10:10AM (#22945727)
>I hate to lose reputation with downvotes for sounding negative

This kind of comment is discussed in the second from the last paragraph here:

https://news.ycombinator.com/newsguidelines.html

Re:Conversations with a six-year-old on functional programmi... by shultays on Wednesday April 22, 2020 @09:47AM (#22945475)
Either that or this is a blog post about `Things that didn't happen.`. If OP is claiming a 6 years old understands what `He gasped in astonishment at the idea of putting function machines into function machines` means then he is lying.
Re:Conversations with a six-year-old on functional programmi... by copperx on Wednesday April 22, 2020 @08:07PM (#22951497)
Why is it so hard to fathom? I'm pretty far from smart but I understood functions at that age, and going a few steps further is not that hard. Besides, this is a child of a brilliant CS professor we're talking about, not your average kid.
Re:Conversations with a six-year-old on functional programmi... by daotoad on Wednesday April 22, 2020 @07:41PM (#22951369)
As a parent, I can tell you with 100% certainty that kids can get this kind of concept.
Re:Conversations with a six-year-old on functional programmi... by Smithalicious on Saturday April 25, 2020 @04:18PM (#22981093)
Nothing ever happens. Everything is fake. People regularly lie about even the most banal things because everyone is a compulsive liar.

Is this really the worldview you choose to have?

Re:Conversations with a six-year-old on functional programmi... by fortran77 on Wednesday April 22, 2020 @09:54AM (#22945550)
"He cried when I told him about typeclasses and monads"
Re:Conversations with a six-year-old on functional programmi... by bluntfang on Wednesday April 22, 2020 @09:12AM (#22945153)
>I hate to lose reputation with downvotes for sounding negative

This is my experience with this community. Downvotes without any discussion on statements (opinion or fact) that exist outside the norm.

Re:Conversations with a six-year-old on functional programmi... by teekert on Wednesday April 22, 2020 @09:26AM (#22945285)
Even more so if you make it meta like you just did, watch this!
Re:Conversations with a six-year-old on functional programmi... by FpUser on Wednesday April 22, 2020 @10:28AM (#22945914)
"I hate to lose reputation with downvotes for sounding negative, but I find my credulity challenged with this story."

My opinion about downvotes is that they reflect way more on reputation of those who actually does the thing (unfortunately they stay anonymous). Well HN rates you using down/up votes but personally since I do not agree with this whole anonymous anti-feature I do not really care.

Alternatively (lets add some conspiracy to spice it up) they might be doing hidden user profiling on whole range of social patterns and sending data to interested parties.

Re:Conversations with a six-year-old on functional programmi... by Causality1 on Wednesday April 22, 2020 @10:42AM (#22946063)
I've found HN to be incredibly unpredictable when it comes to public opinion. I've had comments start out with a dozen up votes only to sink into the negatives hours later, and comments that spent a day at negative four suddenly rise into the positives.
Re:Conversations with a six-year-old on functional programmi... by FpUser on Wednesday April 22, 2020 @11:27AM (#22946567)
Positive sinking into negatives...

Yes that is what I often observe. As for predictability - it seems to me like anything that deviates from the "party line" (whatever that is for any particular area) gets downvoted. Looks like a usual herd mentality to me.