lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]







On Thu, Nov 8, 2012 at 3:31 AM, steve donovan <steve.j.donovan@gmail.com> wrote:
On Thu, Nov 8, 2012 at 11:26 AM, Ti Kl <j.qannan@gmail.com> wrote:
> Can you please help me in listing some examples of icebrwakers for kids.

You mean, 'ways to learn Lua that are not scary'?

steve d.


Depends on how young they are, but puzzles seem effective for me. I've always enjoyed the "bottles of pop" problem. (I like beer or bags of weed, but these are kids, you know).

The way that I do it is:

1: Start with showing them how to print "Hello, world!" For the 8-10 year old, this leads to a very short bit where they type some more things and have it print.
2: Show how you can play ad lib by making a variable called "verb" and one called "noun". Put "hello" into verb and "world" into noun.
3: Then have them do multiple print statements with different variables.
4: Make more complex sentences with more than one verb and noun, using "verb1", "verb2", etc. If they're old enough you can ad "adjective", "adverb", "conjunction", etc.
5: Then introduce how you can iterate through a list of variables with a for loop.
6: Step 5 should be cut short as you "discover" that it's really hard to go through a list of variables. Hmm... how can we group variables in such a way to make it easy to find them, one after another? How about tables?
6:Hey! What if we made our program sing the song "99 bottles of pop on the wall"?

Most people think that programming should result in a visual reward of sorts. I think there is a tremendous amount of validity in that, but I haven't personally experienced it. That is, the response that I get when I show them Codea on my iPad is about the same as sitting down with them, a crappy text editor and Lua. They either like to program or they do not. That said, I cannot recommend Codea enough. It is superfunawesomehappytimemaximumloud, to the max.

The great thing about Lua is that there isn't much garbage to teach. It's extremely accessible.

-Andrew