Skip to content

Instantly share code, notes, and snippets.

@lpalma
Last active February 17, 2019 07:26
Show Gist options
  • Save lpalma/7c31e3c9f677fd93e9f579ecea715499 to your computer and use it in GitHub Desktop.
Save lpalma/7c31e3c9f677fd93e9f579ecea715499 to your computer and use it in GitHub Desktop.
Code Your Future - Week 7: JS Core III

Working with Systems

Part 2

Now that we described the sub-components of our items, we would like to know how they connect to each other. Continuing with our previous examnple, let's say that we would like to know how our Car performs a right turn:

  • Driver turns the Sterring Wheel to the right
  • Steering Wheel turns the wheels to the right
  • Driver pushed the Accelerator pedal
  • Accelerator Pedal sends a signal to the Engine
  • Engine rotates the wheels forward

Notice that we didn't use all the sub-components described in Part 1, which is ok. Also, notice that we found 2 other sub-components while describing the behaviour: Driver and Accelerator Pedal. That is common when describing a behaviour of a system: we often find gaps which are filled with newly discovered components. If you discover new components, remember to list them as part of your solution to Part 2.

Below is the list of behaviours you need to describe:

  • Coffee Machine: Making a cappuccino
  • Laptop: Displaying typed characters on the screen
  • CodeYourFuture: Participating in a Sunday class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment