Pages

Thursday, August 20, 2020

Day 4: Primitives, Variables, and Operators

 Notes from Yesterday

  • The object metaphor already clicks with her.  So proud.
  • Thank you, Notch, for helping sell Java to my kid.
  • Matilda wrote, compiled, and ran her first program today.
  • She keeps asking me all the right questions.


Coding Direction

She seems most interested in games, so we are going to go down that route when exploring object-oriented aspects of the language and polymorphism.  Today, we are sticking with the easy stuff: storing different immediate values in variables and performing PMDAS operations on them.  We'll cap the activity with the introduction of the modulo operation and the magic you can perform with it.


Plan of Attack

While adhering to the curriculum I put together as much as possible, I have left myself some leeway in regard to specific metaphors and elements.  In the case of my daughter, we have already begun having random conversations about in-game items of the same category and those items that might inherit or have overridden characteristics.  Thank you Terraria for spanning all of these and more.  Their wiki with its visually grouped items is especially useful for conveying the usefulness of objects, interfaces, and reused enumerable attributes.
  1. Learn how to store and change attribute values manually and randomly.
  2. Learn how to associate those attributes with a class.
  3. Learn when attribute sets are reusable.
  4. Learn how to combine classes and attributes into more complex objects.
  5. Learn how to dynamically determine type info.
  6. Learn how to use those complex representations to emulate a fight.

No comments: