Live data from Hacker News

Ask HN: How to best teach a group of children how to code?

news.ycombinator.com

11–20 of 116 posts

Re: Ask HN: How to best teach a group of children how to code?

#12
Linear programming on paper first, then linear programming by code. I have no idea how to do that one with kids, without being present (since I barely managed to do it with adults, while being present).

Doing it on paper by hand first is more important then it sounds, so they can really understand a)what they are coding, b)how fricking awesome computers really are.

Re: Ask HN: How to best teach a group of children how to code?

#14
Very timely - I am teaching students ages 8-12 & 10-15 coding this summer.

I've been planning on using Mozilla's Learning program (https://learning.mozilla.org/en-US/) a shot.

It's 2 separate sessions (1 for each age group) and 2 weeks in total. I have already outlined my plan based on it that I'm happy to share.

Does anyone have experience using their platform - share some thoughts?

Re: Ask HN: How to best teach a group of children how to code?

#15
I've done this for several years. Here's what I've learned.

TLDR: Focus on getting them to have fun & enjoy learning about 'code'. Don't care so much on how well they learn it.

Every kid is unique & will respond to different things.

Social & mentors are awesome. It's usually more fun to build with others if possible. Also they will want to easily share & show off their creations with others.

Show them how to "hack" Google with the browser's dev inspector tools. Wins them over every time.

Give them simple partially completed programs that they can modify. I've had a lot of success with a simple trivia game that lets them start by modifying the questions/answers & the replies it gives. A great first lesson in how to use strings & gets them looking at the code. They can then share what they created with others (social aspect) & have them play their game.

Do NOT lecture to them or try to do long demos. They often listen to teachers lecture all day long. They want to have fun & explore. They also don't care about types or any other computer science terms until they've created a lot of things & are trying to figure out why they don't work.

I've had decent results with Scratch. For pure beginners though, still start them off with a semi-completed program.

Re: Ask HN: How to best teach a group of children how to code?

#17
My first programming experience was a course for about ~10 kids between 8 and 12, where they showed us to program Lego Mindstorm roboters with NQC. http://bricxcc.sourceforge.net/nqc/

Some other thing could be Scratch/Kara, but I'm not sure if it exists in english and personally I don't like it.

Re: Ask HN: How to best teach a group of children how to code?

#18

I've done this for several years. Here's what I've learned. TLDR: Focus on getting them to have fun & enjoy learning about 'code'. Don't care so much on how well they learn it. Every kid is unique & will respond to different things. Social & mentors are awesome. It's usually more fun to build with others if possible. Also they will want to easily share & show off their creations with others. Show them how to "hack" G…

+1 for the DOM Inspector. I have found that kids LOVE pulling back the curtain on a website to see the wizard and play with the code. A fun activity is to have them go to a news site and have them edit the headlines and replace the images to silly things and take screenshots to share with their parents. What really impresses me with this exercise is how quickly some kids will figure out some intermediate hacks when they learn how easy it is to google the things they want to do.

Another suggestion that works for the same reason is to give kids code to play with. I've wasted 20 minutes of class time having kids write a three line "Hello World!" javascript program from scratch. All this did was irritate and bore the kids out of their minds as they struggled with syntax and hunt-and-peck typing.

Instead, when I give kids a great big block of javascript code that does something fun and animated, those kids will go wild with it. This is because changes to different variables can have big effects. They quickly learn to read the code and identify what different parts do. They break the code, and you show them how that's a good thing and how easy it is to revert it back so that it's working again. Code should be a playground. Give the kids a rich playground to run around in.

Re: Ask HN: How to best teach a group of children how to code?

#19
A nephew of mine (~9) got a Kano for Christmas and the setup and all the gamified coding exercises were really fun. He really enjoyed them.

Perhaps something to explore as a platform as well as it's not too expensive and comes with what you need to hack around.

It comes with Minecraft Py installed and has a few tasks to customize a level, character, etc. Python dev tools comes installed as well as Scratch and other exercises.

The idea of gamifying tasks across the platform is interesting especially if you think of a class of folks and a leaderboard or something - maybe not something to stress but some folks like competition more than others to drive them to learn.

https://kano.me/store/us/products/kano-complete

Re: Ask HN: How to best teach a group of children how to code?

#20
Do not teach them how to write code. Teach them computational thought. There is a huge difference in approach, and in results.

I've been working indirectly with school districts doing this for a couple years now, and have seen great results from curriculum very similar to this -- https://code.org/educate/curriculum/elementary-school#overvi...

There are other courses for different ages, too. Not sure what age groups you are looking at...

Once they know computational thought, THEN teach them how to code for an app.

Post reply on HN