hollywood principle
DESCRIPTION
TRANSCRIPT
![Page 1: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/1.jpg)
Hollywood Principle
Jun Hu
18-01-08
![Page 2: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/2.jpg)
Don’t call us, we’ll call you
![Page 3: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/3.jpg)
What’s the concept?
• Two step process: – registration and callback
![Page 4: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/4.jpg)
So, what’s the concept?
• Registration
![Page 5: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/5.jpg)
• Callback
So, what’s the concept?
![Page 6: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/6.jpg)
• Inversion of CONTROL
What’s the big deal?
![Page 7: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/7.jpg)
What’s the big deal?
![Page 8: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/8.jpg)
What’s the big deal?
• Low coupling
![Page 9: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/9.jpg)
Software engineer’s version
• Hollywood, Bollywood => Observable
• Actors, actresses => Observers
![Page 10: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/10.jpg)
Observer Pattern
![Page 11: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/11.jpg)
Mathematician’s version
![Page 12: Hollywood principle](https://reader033.vdocuments.site/reader033/viewer/2022061118/545d0e6ab0af9fa42c8b4b56/html5/thumbnails/12.jpg)
?