Caleb Cushing's Blog

Teaching Perl - Week 2

Week 0Week 1 (part 1)Week 1 (part 2)Guess the NumberSo our little game is exceptionally mediocre and not very fun. Head First Programming: A Learner's Guide to Programming Using the Python Languagesuggests we give the game player some help by telling them if the number is lower or Higher. use feature ‘say’; use strict; use warnings; say “welcome”; say “Guess the number: “; my $guess = readline(*STDIN); if ( $guess == 5 ) { Read more →

Teaching Perl - Week 1 - ( Part2 )

Week 0Week 1 (part 1)Padre - Perl IDENow let’s install Padre the Perl IDE to give the students a nice development environment. There are instructions on the website, however, cpanp -i Padre should get the trick done since it is on CPAN In the future Strawberry will ship with Padre but that future isn’t quite here. First ProgramOk so we want to make sure that we have Perl installed correctly and since you’re taking my advice I’m assuming that you’ve given your students access to 5. Read more →

Teaching Perl - Week 1 - ( Part1 )

Make sure you’ve read Part 0 first. As I said before Baker provides a Linux server for the perl class. However, none of the students have had a unix class. So I advise touching on it and giving them a link to these tutorials if they want to use it, and a helping hand. The book also talks about ActiveState but this isn’t the recommended way to do perl on windows anymore. Read more →

Teaching Perl - Part 0 - Preface

This is my 2 cents on how perl should be getting taught at my school. My school’s curriculum sucks in general across the board. But assuming I can’t change what classes are taught, when and what prerequisites this is how I would teach perl given the current computer science curriculum. Since people reading this are probably not familiar with the Fail that is Baker College (I would not choose Baker if I had to start again but credits don’t transfer easily, so it was easier to continue on with it). Read more →