4 ms·
A language like Perl 6 would probably be a good first programming language if some good libraries become available for it. Printing one line of text is one lin
by simula67 12y ago
A language like Perl 6 would probably be a good first programming language if some good libraries become available for it.
Printing one line of text is one line of code. Then you can start teaching branching, loops etc.
Object-orientation is also baked in.
Oh and by the way, there is this thing called "types". It helps you catch some types of bugs early and can potentially make your programs be compiled and thus run faster in some cases. Learn about that also without switching the language.
Some functional programming concepts can also be taught.
Also it has a C-style syntax so switching to another similar language later on would also be easier.
- gthm 12y agoYou could also not use Perl 6 for that. Today, you could use almost any language for that. Thanks, people who got stuck with Perl 5 code and now have to deal with it. May the whole concept die in a fire.
- gthm 12y agoI'm sorry to come off as harsh, but I -- without any joke -- thought I would have better things to do with my time on this planet than deal with some scumbag's Perl 5 code. I don't think the solution to the "shitbrain writing Perl" problem is more Perl. Fuck that in the ass. Well, you say, isn't that a problem in every language? Perhaps. But I don't have to deal with it in every language. And every other language seems to have a type system that will let me know when something idiotic is being done, or exception handling, or "well, that pointer was null, so I'm done for the day" behavior that Perl doesn't have. And as I've (sometimes reluctantly) given up on old relationships I'd invested a lot of time in as being not for me, or anyone for that matter, so is fucking Perl. It's not FOR ANYONE.