Skip to content

Commit 9088a41

Browse files
docs: add real-world example to Observer pattern README
1 parent ede37bd commit 9088a41

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

observer/README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,3 +209,10 @@ Trade-offs:
209209
* [Head First Design Patterns: Building Extensible and Maintainable Object-Oriented Software](https://amzn.to/49NGldq)
210210
* [Pattern-Oriented Software Architecture Volume 1: A System of Patterns](https://amzn.to/3xZ1ELU)
211211
* [Refactoring to Patterns](https://amzn.to/3VOO4F5)
212+
213+
## Real-World Example
214+
215+
The Observer pattern is widely used in event-driven architectures.
216+
For instance, in Java Swing or JavaFX applications, UI components can register listeners
217+
to react to user actions without tightly coupling the business logic to the interface.
218+
This makes the system more modular and easier to extend.

0 commit comments

Comments
 (0)