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.

Lecture: Control Flow

Download the slides.

My Text Editor

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.

and, or, not, &&, ||, and !, Oh my!

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….

Continue reading ‘and, or, not, &&, ||, and !, Oh my!’ »

Lecture: A Bit of Logic

Download the slides.

Lab 6: True or False?

Objectives

Reading: Chapters 7-8

Please 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.

Lecture: irb

Download the slides. You can also view a recorded demonstration of irb (similar to what we went through together in class) as a screencast.

Lab 5: Exploring Objects and Methods

Objectives

Lecture: Objects and Methods

The completed slides from the most recent lecture on Objects and Methods have been uploaded. Download them here.