Hacker News new | past | comments | ask | show | jobs | submit login

I teach a code club to 8-10 year olds. They understand functions, and that the main script can call functions, and that functions can call other functions. Conceptually, they struggle with a function being assigned to a variable, passed in as an argument, or being returned from a function.

So far, demonstrating to them what's going on here and why this is useful has eluded me.




> they struggle with a function being assigned to a variable, passed in as an argument, or being returned from a function.

I've seen professional programmers struggle with that.


Author here. It's a valid point, I think once they start entering into Discord and want to build a Discord bot, Flyde might come in handy as an educational tool.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: