in reply to Perl for all ages?
Perl is my son's first programming language, he started at the age of 11. His first program was a guessing game.
Secondly, quick positive feedback! It is straightforward to link a small Perl program to some operating system application using the system call.
Provided with a almost oneliner example my son could use text-to-speech and generate voice feedback via his programs. And what's more rewarding than to make your computer speak? Cool!
He used something like this:
The say application was really a tiny Perl script that I've written for him to call the text-to-speech program festival on a Linux box with arguments so that it would simply voice the string provided to it.$text='Congratulations, your guess was right'; system("say $text");
As with all things kids need a little guidance especially in the beginning to get them going. It's not too difficult to write a broken Perl program yet it feels great once the hurdle is taken. So I had him expiriment a bit yet made sure that he didn't get stuck too long until he was sufficiently able and motivated to debug on his own.
Once his interest was raised a translated version of the book "Teach yourself Perl in 24 hours" was all he needed...
I hope this node inspires many people to help their kids get started with Perl. One of the best parts of Perl is that it is suited for writing very simple to very complex programs. No need to keep it a secret!
|
|---|