Archive for the ‘Lectures’ Category.

Lecture: File I/O

Download the slides here.

Lecture: Hashes

Download the slides here.

Lecture: Two Examples

Download the slides here.

Lecture: Methods

Download the slides.

Simulating Blackjack

The code we went over in class to simulate the game of Blackjack can be found at . Instead of removing the programming shortcuts (a.k.a. “syntactic sugar”) I use in the uploaded code, I’m attaching a small section of the code in this post with comments to help you understand and perhaps use them in your own programs:

Continue reading ‘Simulating Blackjack’ »

Lecture: Midterm review

Download the slides here.

Lecture: Arrays and Iterators

Download the slides. Note that we haven’t gone through all these yet — we’ll cover the second half on Monday.

Lecture: Control Flow

Download the slides.

Lecture: A Bit of Logic

Download the slides.

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.