NEW: For a prettier blog interface, see the Wordpress version!

Tasks
Priorities - A: high, B: medium, C: low; Status - _: unfinished, X: finished, C: cancelled, P: pending, o: in progress, >: delegated. Covey quadrants - Q1 & Q3: urgent, Q1 & Q2: important
A1XDelete notebook/school/teaching/journal.txt {{Tasks:67}} (../../sitelogs/sacha.sachachua.com-access_log)
A2XDelete handsomest-drowned-man {{Tasks:66}} (../../sitelogs/sacha.sachachua.com-access_log)
A3XRemove dict, delete {{Tasks:65}} (../../sitelogs/sacha.sachachua.com-access_log)
Schedule
15:00 16:30 Faculty meeting at the conference room
Diary
Notes

1. My faculty load : 15:16

Categories: None -- Permalink
sum cs21a 4
1st cs21a 4
1st cs123 4
1st cs231 2
2nd cs21a 4
2nd cs21b 3
2nd cs21b 3
2nd cs161 4
2nd cs161 4
2nd cs197 1

3. CS161 : 22:27

Categories: None -- Permalink
Having breezed through the first slide set in one class day while the other teachers are just halfway through, I wanted to help my students review the topics. I prepared a reviewer for the first slide set of operating systems (SXI PPT) and asked students to answer as an ungraded exercise. It revealed a lot of areas for review, and I'm glad I did it.

4. CS21A: Smiley : 22:38

Categories: None -- Permalink
I drew a smiley on the board and provided the skeleton for a new class that drew only the circle that represented the face. I asked the students to get it to display a smiley according to the drawing. While they did that, I downloaded my source code for Smiley.java and the modified classes from the BlueJ sample project (added move() to Triangle and Circle) and showed them my implementation. I wanted them to define a class that supported many of the operations the basic shapes did. I started with a single Circle attribute representing the face, a constructor that created the circle, and a makeVisible() method that made the face visible.

The major conceptual point I wanted to make was:

You can define your own class that contains objects. You can call methods on those objects and you don't have to worry about the implementation details. You can support the other methods by passing the method calls to the different objects.

A number of students started by looking at Circle.java and trying to model their work on it, but I suggested working from the very simple skeleton we had on the board. This greatly helped the students who were getting lost in the source code.

I also pointed out that they could use BlueJ to determine the coordinates and sizes experimentally. Instead of edit-compile-test, they could interactively create an object, manipulate it, and then inspect it to find the necessary values.

This exercise was open-ended. After students got the smiley to display, they added support for moveUp(), moveDown(), moveLeft(), and moveRight(). moveHorizontal(int distance) and moveVertical(int distance) followed shortly after. move(int x, int y) required a bit more thought because they couldn't just pass the request on. I also had a simple animate() method. I suggested making it possible for the user to change the smiley's colors (face, eyes, and mouth - separate methods, or one method with three parameters) or size (bit more complicated).

I think this exercise worked very well. I did not have to tell the students exactly what to do, although I gave them a number of hints. I exposed my planning process - first, get the face to display, then add the eyes, then the mouth, then add other methods one at a time. Students learned how to plan implementation in small steps. I did not tell them what they had to do; I just drew a figure on the board and had a demo up on the projector. On their own, they figured out that they needed to specify negative height in order to get an inverted triangle and add offsets during the move.

5. Words of wisdom : 22:46

Categories: None -- Permalink
From William Yu: Communication effects. You can influence a person by taking time to talk with them.

(from Fanny's blog)

6. CookOrDie: Day 7: Reheated rice, sausage slices : 22:53

Categories: None -- Permalink
Leftover rice plus Hungarian sausages. Okay, but not as fun as bread or potatoes. Tomorrow, will check out meat shop.

Yang chow rice from Red Panda reheated very nicely - still moist. Extra rice left over from The Barn (eeew, two days!) was too dry. Should try to reheat it in separate container with more water.

Hungarian cocktail sausage slices not best for mixing with rice. Perhaps whole sausages or somewhat larger slices so that it can be tasted.

CookOrDie

Previous day | Next day

I'd love to hear about any questions, comments, suggestions or links that you might have. Your comments will not be posted on this website immediately, but will be e-mailed to me first. You can use this form to get in touch with me, or e-mail me at sacha@sachachua.com .

Page: 2003.11.19
Updated: 2004-11-2106:44:1306:44:13-0500
NOTE: ANTI-SPAM MEASURE NOW IN PLACE. Please answer the following question with the right number in order to send me your comment.
What is two minus one? (hint: one ;) )
Name:
E-mail:
URL:
Comments: