SOFTWARE ENGINEERING

SOFTWARE DESIGN

DESIGN PATTERNS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is NOT a correct statement for the Hollywood Principle?
A
Call us, we don’t call you.
B
A low-level component never calls a high-level component directly.
C
It is a way to prevent dependency rot.
D
High-level components control when and how low-level components participate in the computation.
Explanation: 

Detailed explanation-1: -The dependency inversion principle is a design principle that states that high-level modules should depend on abstractions rather than concrete implementations. This helps decouple the high-level and low-level modules, making it easier to change the low-level ones without affecting the high-level ones.

Detailed explanation-2: -The DRY principle is stated as “Every piece of knowledge must have a single, unambiguous, authoritative representation within a system". The principle has been formulated by Andy Hunt and Dave Thomas in their book The Pragmatic Programmer.

There is 1 question to complete.