Hollywood

In the context of computer science, "Hollywood" refers to the "Hollywood Principle," which is a guideline in software design that emphasizes the notion of "Don't call us, we'll call you." This principle is often applied in the design of frameworks and APIs. It suggests that inverting the flow of control is beneficial - meaning that instead of your application code calling a framework or library directly, the framework will call into your application code when needed. This is commonly implemented through techniques like callbacks, event handlers, or dependency injection. The Hollywood Principle promotes loose coupling and enhances the modularity of code, allowing for easier testing and maintenance. It encourages developers to design systems that are extensible and adaptable, permitting users to define custom behaviors while allowing the framework to manage the overall program flow.
1 2 3 4