teaching machines

CS 145 Lecture 38 – Slideshow

Agenda what ?s program this slideshow application TODO Read Isaac Asimov’s short story The Feeling of Power. On a 1/4 sheet for Monday, share your reaction, observations, amens, and ahems. Note Today we’ll get a working slideshow application running. But first, let’s have a little Program This: Suppose you are a chemist. With a neighbor, design an […]

CS 145 Lecture 37 – Instance vs. Static vs. Local

Agenda what ?s instance vs. local vs. static  Vector2D a slideshow application Note Whenever you declare a variable, you have to decide a few things: what type will it be? what will I name it? who needs access to it? how long will it need to live? Different answers to the last two questions lead us to […]

CS 145 Lecture 36 – Blackboxes Cont’d

Agenda what ?s blackboxes cont’d implementing ArrayList TODO Start homework 7. Due before December 14—unless you are pursuing the mercy bounty, in which it’s due before December 7. Note Today we keep exploring objects from the outside in with a few more blackboxes: Blackbox 23 Blackbox 25 Blackbox 24 If we have time, we’ll also […]

CS 145 Lecture 35 – Android Demo

Agenda what ?s Android app structure declarative layout custom views handling touch events Note Today we create an Android application! We’ll incorporate many of the subjects we’ve been discussing, with loops, 2D arrays, and objects. We’ll also slog through what you’re likely to encounter in many modern software projects: an extensive standard library at your […]

CS 145 Lab 6 – Objects

First, if you have checkpoints left over from last lab, get them inspected during the first 15 minutes of this lab. No credit will be awarded past these 15 minutes. Don’t forget to work in pairs! Where possible, please work with someone that you did not work with last week. The exchange of new ideas and […]

CS 145 Homework 7 – due before December 14

See the PDF.

CS 145 Lecture 34 – Blackbox Objects

Agenda what ?s blackbox objects TODO No lab on Tuesday. Android demo on Wednesday. Note We’ve been through encapsulation before. At the beginning of the semester, we tucked code into reusable methods. We explored these methods through Blackboxes. We’re doing something similar with objects, but these Blackboxes have a persistent memory. Today, we’ll look at […]

CS 145 Lecture 33 – Stopwatch and Separation of Concerns

Agenda what ?s what is this? stopwatch TODO Read chapter 8 through section 8.4. Write down 2-3 questions or observations on a 1/4 sheet for Monday. Note We’ve hit upon our last major theme for the course: objects. Objects encapsulate an identity in our program, putting together that thing’s state and behaviors under one roof. […]

CS 145 Lecture 32 – Objects

Agenda what ?s hot dog design data and code circle objects  NDeckerBurgers TODO For an extra credit participation point: write on a 1/4 sheet of paper a class Raffle with a constructor and methods for adding and drawing names. Test it! Note We start our discussion today with a philosophical question. Spend a minute telling […]

CS 145 Lecture 31 – Decksercise

Agenda what ?s working with a deck of cards for-each loop Monte Carlo simulations TODO For a participation point, write a question or two to share before the quiz in tomorrow’s lab. New topics we’ve covered since the last quiz include arrays and ArrayLists. Note The theme for the day is cards. We’re going to […]

1 13 14 15 16 17 35