Flyweight Pattern - DESIGN PATTERNS (C#/.NET)

SingletonSean
SingletonSean
3.4 هزار بار بازدید - 2 سال پیش - Learn about the flyweight pattern,
Learn about the flyweight pattern, which is a structural design pattern that involves reusing objects to reduce memory usage. The reused object is known as the flyweight and contains immutable, intrinsic state.

Design patterns are important for implementing object-oriented designs and adhering to SOLID principles. Understanding these fundamental patterns helps software developers build clean and maintainable applications.

TIMESTAMPS:
0:00 - Pattern Introduction
0:16 - Demo Introduction
1:02 - Memory Usage without Flyweight
2:05 - Identifying Intrinsic State
2:53 - Extracting Intrinsic State
4:19 - Implementing a Flyweight Factory
6:58 - Using the Flyweight Factory
7:54 - Memory Usage with Flyweight
8:27 - Flyweight Usage Tips
9:01 - Making the Flyweight Immutable (IMPORTANT)
9:30 - Conclusion

SOURCE CODE: https://github.com/SingletonSean/desi...

OTHER LINKS:
Become a Member: @singletonsean
Donations: https://www.paypal.com/biz/fund?id=UB...
2 سال پیش در تاریخ 1401/04/19 منتشر شده است.
3,400 بـار بازدید شده
... بیشتر