Dancing Robot
Dancing Robot
Brief Description and Concept: The mini project for Week 6 is to create a fantastical dancer in p5.js. By the next class on Tuesday, October 24, 2022, all the dancers made in this Creative Coding Class Lab F22 are going to be performing in a single sketch on Professor Leon Eckert’s, our instructor, computer. After learning class in JavaScript, every code has become self-contained, making it easier to copy, paste, and modify into a single sketch.
Demo/Visual Documentation:
Screen Recording 2022-10-23 at 11.47.46 PM
Coding:
Reflection/Lessons Learned Questions:
- What is the benefit of your class not relying on any code outside of its own definition?
- What make it challenging to write code that has to harmonize with the code other people have written?
- Describe the terms modularity and reusability using the example of your dancer class.
Response:
The benefit of using classes is help in grouping related data and subroutines together. It designs a blueprint for an object. When multiple objects perform various actions, classes would be an essential tool in this case. Additionally, when adding different works together, this function helps in not mixing similar coding definitions together. Personally, the challenging part of writing this class code is that it can become too complicated to use when actions and objects get mixed together. I could repeatedly use object terms to do multiple actions; for instance, having the arms dilating and swinging.