I started this lesson by going to Amazon and searching for tiaras (just cuz i was in a princess mood, haha). When the results returned, I had them talk about what each tiara entry had in common ie each one had a picture, price, rating. But tiaras also have a certain number of crown points, diamonds--why was that not included? Me, Nayana, as a person, has many qualities. If I'm modeling myself as a WDI instructor, does it matter that I was a dancer for 10 years or like to eat donuts? Really hitting on the ideas of abstraction and encapsulation.
I again used the DC lesson because it's one that I've taught before and am comfortable with. But additionally, the students get a good amount of practice interacting with objects in addition to modeling.
In this lesson, I'm not a fan of using this quite yet. This is a confusing concept and should be fleshed out more, and again, it distracts students.
Under the Demo: Modeling in Javascript section, I wouldn't have said "instance of our car object". That's a technical concept that we haven't gone over yet and what we're actually seeing in the code isn't really an instance. Might get confusing.
For this lesson, I primarily relied on this DC lesson: https://github.com/ga-wdi-lessons/js-objects-functions/blob/master/objects.md and then had the students complete this exercise: https://github.com/ga-wdi-exercises/js-calculator
I started this lesson by going to Amazon and searching for tiaras (just cuz i was in a princess mood, haha). When the results returned, I had them talk about what each tiara entry had in common ie each one had a picture, price, rating. But tiaras also have a certain number of crown points, diamonds--why was that not included? Me, Nayana, as a person, has many qualities. If I'm modeling myself as a WDI instructor, does it matter that I was a dancer for 10 years or like to eat donuts? Really hitting on the ideas of abstraction and encapsulation.
I again used the DC lesson because it's one that I've taught before and am comfortable with. But additionally, the students get a good amount of practice interacting with objects in addition to modeling.
There's an exercise at the end of the DC lesson called
Big Old Twitter Object
. I didn't have them complete this because we've found in DC that it gets a bit too confusing and overwhelming for students, but I did show them what the notation looks like https://github.com/ga-wdi-exercises/big_ole_twitter_object/blob/master/scripts/app.js for this tweet: https://twitter.com/twitterapi/status/210462857140252672 just so they get a sense of where we're going and how complex objects can get.In this lesson, I'm not a fan of using
this
quite yet.This
is a confusing concept and should be fleshed out more, and again, it distracts students.Under the
Demo: Modeling in Javascript
section, I wouldn't have said "instance of our car object". That's a technical concept that we haven't gone over yet and what we're actually seeing in the code isn't really an instance. Might get confusing.