take out insert video here
continuous-integration/drone/push Build is passing Details

main
Evan Hemsley 2020-07-21 15:33:59 -07:00
parent a82cd97386
commit 3ac3385f70
1 changed files with 0 additions and 6 deletions

View File

@ -192,12 +192,6 @@ Finally, let's send a message to spawn the computer-controlled paddle.
```
*Insert video here*
<video width="75%" autoplay="autoplay" muted="muted" loop="loop" style="display: block; margin: 0 auto;">
<source src="/images/computer.webm" type="video/webm">
</video>
If we were doing this in an object-oriented way, we would have had to inherit from the paddle or introduce another state to the paddle, thus forcing us to refactor or increase the complexity of the paddle object itself.
Notice how in our case we didn't really have to change any of our existing logic - all we had to do was create new components and write a new engine for producing behavior from those components, while getting to retain all the behavior we got from the other paddle components. See how clean and de-coupled this is? This is the power of _composition_ over _inheritance_.