Update page '6-14-2023 Cohort 2 Sync Notes'
@@ -0,0 +1,72 @@
|
|||||||
|
1515h: Started
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
| Column 1 | Column 2 | Column 3 |
|
||||||
|
| -------- | -------- | -------- |
|
||||||
|
| Text | Text | Text |
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Notes review
|
||||||
|
|
||||||
|
Questions:
|
||||||
|
|
||||||
|
* Can you think of a practical example of why you'd want to use function overloading?
|
||||||
|
* Discussed good examples and bad examples:
|
||||||
|
|
||||||
|
Situation:
|
||||||
|
|
||||||
|
There's an elevator. There is a button labeled 🙉. You look at the manual to see what this button does, because you don't know.
|
||||||
|
|
||||||
|
Bad example:
|
||||||
|
|
||||||
|
The elevator manual says:
|
||||||
|
|
||||||
|
[Chapter 3: buttons]
|
||||||
|
[Section 3.1: monkey buttons]
|
||||||
|
[Section 3.1.3: 🙉 button]
|
||||||
|
|
||||||
|
Description:
|
||||||
|
|
||||||
|
The 🙉 button controls the 🙉 feature.
|
||||||
|
|
||||||
|
Usage example:
|
||||||
|
|
||||||
|
* When you want 🙉, press the 🙉 button.
|
||||||
|
|
||||||
|
* If you do not want 🙉, press the 🙉 button.
|
||||||
|
|
||||||
|
Good example:
|
||||||
|
|
||||||
|
The elevator manual says:
|
||||||
|
|
||||||
|
[Chapter 3: buttons]
|
||||||
|
|
||||||
|
This section describes the buttons located on the interior service compartment of the elevator.
|
||||||
|
|
||||||
|
[Section 3.1: monkey buttons]
|
||||||
|
|
||||||
|
This section describes the buttons related to the monkey feature, which is only used during elevator testing. Do not use these buttons for regular passengers, because it will upset them.
|
||||||
|
|
||||||
|
[Section 3.1.3: 🙉 button]
|
||||||
|
|
||||||
|
Description:
|
||||||
|
|
||||||
|
The 🙉 button will immediately dump 100 monkeys into the elevator. This should only be used for testing by the fire department, to ensure the elevator is monkey-proof.
|
||||||
|
|
||||||
|
Usage example:
|
||||||
|
|
||||||
|
1. Shut down the elevator and place it in service mode.
|
||||||
|
2. Make sure the fire department has authorized a monkey test.
|
||||||
|
3. Press the 🙉 button.
|
||||||
|
4. Run away.
|
||||||
|
5. Let the fire department deal with it.
|
||||||
|
|
||||||
|
* Max reports he's using MS word to capture his notes, then he's pasting into VSC to commit it to the repository. I advised him to consider using VSC directly, and naming his files as .txt files so VSC knows what to do with them. I also mentioned markdown and how to open the live preview pane to the right.
|
||||||
|
|
||||||
|
* Mentioned that the reverse comparison methods exist because of one of the fundamental concepts in OOP: you don't get to choose the other objects you'll be working with.
|
||||||
|
|
||||||
|
* Max needs to re-remember what a "salt" is.
|
||||||
|
|
||||||
|
* We looked at the RTF extension, I mentioned that starring repos on GitHub is an important part of being part of the Open Source ecosystem
|
||||||
Reference in New Issue
Block a user