Examples updated
The examples repository at gibhub has been updated to include all the sample code we’ve gone through in class together, including the program containing solutions for Quiz 2. You can check it out here.
Introduction to Programming Course Blog
The examples repository at gibhub has been updated to include all the sample code we’ve gone through in class together, including the program containing solutions for Quiz 2. You can check it out here.
Download the slides.
I’ve had a few folks e-mail and ask me after class about the editor that I use for my own programming. Its name is “Textmate”, and it can be purchased at http://macromates.com/ — it is unfortunately Mac only. I highly recommend it — I spend an average of 5-10 hours a day sitting in front of it and still love most things about it. Another great (not-for-free) Mac text editor is BBEdit.
If you’re looking for a free editor that does (much more than just) the job, you should check out Smultron and TextWrangler.
Once upon a time, programming had logical operators in symbol form. One Japanese man (and lots of others) thought it would be just swell if those symbols could be replaced with words. What a novel idea! Reading English words to mean English ideas! It would be grande! And for a time, it was; that is… until people saw that it had gone horribly, horribly wrong….
Download the slides.
irb to quickly test Ruby codePlease read chapters 7 (Flow Control) and 8 (Arrays and Iterators). We’ll be going over comparison operators and Boolean logic on Wednesday and control flow (branches and loops) and possibly arrays next week.
Download the slides. You can also view a recorded demonstration of irb (similar to what we went through together in class) as a screencast.
The completed slides from the most recent lecture on Objects and Methods have been uploaded. Download them here.