2 ms·
I actually settled on Lua for teaching my son. Very simple minimalistic syntax, few concepts, few primitives, few keywords, dynamically-typed / garbage collect
by shawndumas 14y ago
I actually settled on Lua for teaching my son.
Very simple minimalistic syntax, few concepts, few primitives, few keywords, dynamically-typed / garbage collected, variable arity, no real gotchas, good tool support, great speed, the ability to access a key in a hash either using bracket or dotted notation, and one of the best programming books for any language (PiL).
But it also scales well; closures, first-class / true anonymous functions, metatables / metamethods, nice simple API for talking between script and C, tail-call optimization, coroutines, short circuiting operators.
And, the path from Lua to JavaScript is very straightforward. In fact I'd say that mastery of Lua would make you a mid-level JS programmer right out of the box...
- jacktoole1 14y ago+1 love, love, love the simplicity of the Lua language. If I were teaching introductory programming it would be high on my list of languages to consider. (I wish its syntax was a little less verbose, but that's why I use http://moonscript.org http://moonscript.org (like coffeescript for lua) right now, although the compiler has some rough edges and looks like it hasn't received much attention for awhile).
- rahul_rstudio 14y agoC was the first language that i learned and i still feel very comfortable using it. I think that's what affects my choice in recommending it as the first programming language to be learned. Still, personal experiences in using a language would always be different for different people. That's why i recommend asking other programmers for some advice, before jumping into programming for the very first time :)