Live data from Hacker News

Conversations with a six-year-old on functional programming

byorgey.wordpress.com

241–250 of 319 posts

Re: Conversations with a six-year-old on functional programming

#241
post #5

> “A function is like a machine where you put something in one end and something comes out the other end. For example, maybe you put a number in, and the number that is one bigger comes out. So if you put in three, four comes out, or if you put in six, seven comes out.” Examples are such a useful tool to explain complex subjects and make them approachable.

This is my biggest complaint with manpages, historically. Many of them don't have examples and only describe the command switches in a list.

Re: Conversations with a six-year-old on functional programming

#242

Earlier quoted context omitted.

What about a definition of protocol that allows sending messages to yourself for recursion.

What about it? Why should it be treated differently?

It doesn't require an extra party to do useful things across a protocol, where the discussion implies it does.

Re: Conversations with a six-year-old on functional programming

#245
post #57
post #45

Brent is one of the greatest teachers I've ever experienced. I used to take classes from him (and TA some others he taught) and was consistently blown away by his enthusiasm and capacity for sharing concepts. He has a great essay on pedagogy as well ( https://byorgey.wordpress.com/2009/01/12/abstraction-intuiti... ) If you're interested in learning some of the beautiful foundations of functional programming, I highly…

I'll second this; he is a fantastic teacher. I had the incredibly fortunate opportunity of learning from Brent in my undergrad at Hendrix, where he currently teaches. There are other comments here that praise his patience with regard to teaching these topics to a child. I can say without a doubt he maintains the same patience with all of his students - not just his children. If you ever have the opportunity to learn…

This really makes me wish there was a way to watch his courses online! Anyone know of any available?

Re: Conversations with a six-year-old on functional programming

#246
post #57

Earlier quoted context omitted.

I'll second this; he is a fantastic teacher. I had the incredibly fortunate opportunity of learning from Brent in my undergrad at Hendrix, where he currently teaches. There are other comments here that praise his patience with regard to teaching these topics to a child. I can say without a doubt he maintains the same patience with all of his students - not just his children. If you ever have the opportunity to learn…

You did CS at Hendrix College? I did too ('11) and can't help mentioning it even though I have little to say... because hey, small school, tiny department, it's not often you run into another Hendrix CS alum, even virtually. And after years in "industry" I really appreciate the surprisingly good CS education there for a not well known school How's the dept doing these days? Is Ferrer still there?

Sure did! Looks like you already have a reply from Ferrer :) but I will chime in to say the department is doing as well as ever. I graduated a couple years ago and was also surprised with how strong my CS background was going into industry. It's definitely served me well.

It's still a small department - I think there were <10 people in my class - but has seen an uptick in growth the last few years. They've made some really great hires recently - obviously Brent, as well as Mark. Both are great teachers and Hendrix is lucky to have them.

Re: Conversations with a six-year-old on functional programming

#247
I loved reading this. When I was that age, I used to ask so many questions to my father and I was lucky that he was always happy to not just answer, but explain everything. If he didn't do that, I may not have followed the path to where I am today.

Re: Conversations with a six-year-old on functional programming

#248
post #239

Earlier quoted context omitted.

This is something I saw over and over again long before I had a serious interest in technology or science at all. It’s an attitude that’s rampant in liberal arts courses. There are “kiddie” versions of everything from History to to Music Theory to Grammar. It used to really frustrate me in undergrad how many things taught as almost moral absolutes were upended the following semester. I sort of get it that even in jun…

I agree with a caveat, Sometimes I see people take this sort of complexity (there are limits to what we know, science is fallible, there are different interpretations of pretty much everything) and run with it (YouTube conspiracy theories constitute "doing your own research", experts are no better than amateurs and therefore there's no reason to study anything hard). It's kind of a fine balance between going independ…

I agree this can be a problem. I think the best vaccine against people going too far that direction though is honesty and a deeply understood sense of how we know what we think we know and how we can separate crazy-talk from legitimate possibilities. I guess, what I mean is that it's never to early to talk about epistemology, the scientific method, falsifiability, and the things that guide us down that sometimes narrow path.

Re: Conversations with a six-year-old on functional programming

#249
post #19

Side 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 ?

Yes: Joy. https://en.wikipedia.org/wiki/Joy_(programming_language) (Shameless plug for my own implementation: http://joypy.osdn.io/ )

Can you please explain why Joy is simple to a non-programmer ? because all i see is verbose language, and i know some programming.

Re: Conversations with a six-year-old on functional programming

#250
post #3

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.

One thing that makes this easier is being rich. What I mean by that is for example, when my kid is asking me questions or wants to "do it myself!", the fact that I have a flexible schedule helps immensely, and that flexible schedule is possible because I can turn down work that doesn't give me that flexibility. If I had a strict clock-in/clock-out job, and only had limited time to run errands, I'd have a lot less pat…

It's not "being rich" that helps, it's having a high hourly rate of pay relative to expenses. Many rich people work 60+ hr weeks with travel, and don't see their kids much. Many non-rich people are stay-at-home parents or extended family. Of course, they can hire nannies, governors, and tutors to fill in the gaps...
Post reply on HN