Hacker News new | ask | show | jobs
by akudha 1425 days ago
I was looking at some human language learning material. One of the exercises in it was to rearrange jumbled words into a meaningful sentence. That got me thinking, what sort of exercises can we borrow from human language learning to learn programming?

A ten line jumbled function that the learner needs to order correctly? A small function with missing lines or wrong conditions that the learner can fix, to get the function working correctly? None of these are substitutes for writing code of course, but these can be fun exercises?

1 comments

For me, those things are too complicated for a card. I want my cards to drill one thing. I might even want five cards to drill one thing five times, but with five different contexts. I want them to help me retain facts, like a syntax, a library, configuration, keywords, and enumerations/flags/switches with arbitrary names.

Programming practice is what I do after I have (or while I'm putting) these facts at my fingertips.