NEW: For a prettier blog interface, see the Wordpress version!
| A1 | X | Delete notebook/school/teaching/journal.txt {{Tasks:67}} (../../sitelogs/sacha.sachachua.com-access_log) |
| A2 | X | Delete handsomest-drowned-man {{Tasks:66}} (../../sitelogs/sacha.sachachua.com-access_log) |
| A3 | X | Remove dict, delete {{Tasks:65}} (../../sitelogs/sacha.sachachua.com-access_log) |
| 15:00 | 16:30 | Faculty meeting at the conference room |
1. My faculty load : 15:16
| 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 |
2. Kathy has an article! : 20:32
3. CS161 : 22:27
4. CS21A: Smiley : 22:38
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
(from Fanny's blog)
6. CookOrDie: Day 7: Reheated rice, sausage slices : 22:53
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.
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 .