Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider suggested changes when revising unit 7 #403

Open
Dan-TEALS opened this issue Jun 16, 2022 Discussed in #390 · 0 comments
Open

Consider suggested changes when revising unit 7 #403

Dan-TEALS opened this issue Jun 16, 2022 Discussed in #390 · 0 comments
Assignees

Comments

@Dan-TEALS
Copy link
Contributor

Discussed in #390

Originally posted by jdonwells May 5, 2022
The problem I saw with Unit 7 is the way it starts. We show them how to create empty classes and then populate the instances with attributes individually outside of the class. If you have spent any time in this discussion group you can imagine that doesn't work for me.

7.01 So for the first lesson I went over class creation, attributes, and methods. The lab was changed to just ask them to create a class and a method that sets the attributes. Essentially an init method but not init yet. https://docs.google.com/presentation/d/1v-03EpGBxwvYl3tUei4xTI2iQWWns9wZye3NKDP4htc/edit?usp=sharing

7.02 is not changed. They learn about a better way to initialize with the init method.

7.03 Mostly unchanged. The lab is changed to just ask them to create a str method. https://docs.google.com/presentation/d/1wnYQXib_DGD5hIXH15D7w9Lyq8LRm9-KHa9iMsqq52c/edit?usp=sharing
Notice that we are using a piece of our Zork game that was moved to Unit 6 as the basis for the lab.

7.04 is not changed. They learn about inheritance.

7.05 is a new lesson. In this lesson I put everything they have learned together with super() and double dispatch. They are then given a lab to create add methods for two classes. Basically the Kangaroo lab from 7.03 but using double dispatch. They have items and backpacks. You can add an item to a backpack or a backpack to an item. However, you may not add two items or two backpacks together. That will print an error. https://docs.google.com/presentation/d/1fLtSQPkeQyVOJTsL5sAyODp6V6nlFfR7Nh-sFrFnBeA/edit?usp=sharing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant