Source code: https://github.com/CodeWithRSV/Youtube-Tutorials/tree/main/design-patterns/DemoApp
In this video, we will discuss about the singleton design pattern. What is the problem it solves, the code structure of the pattern and code example of using this pattern.
Recommended readings:
Clean Architecture: A Craftsman's Guide to Software Structure and Design : https://amzn.to/3VLJaXc
Design Patterns: Elements of Reusable Object-Oriented Software: https://amzn.to/3B4zr4P
Head First Design Patterns: https://amzn.to/3B4ZTLJ
Singleton is a creational design pattern, which ensures that only one object of its kind exists and provides a single point of access to it for any other code.
Topics covered:
Introduction to Singleton design pattern
Problem statement
Solution provided
Code Structure
C# Code example
Lazy implementation
Double checked locking
#designpatterns #cleancode
---------------------------------------------------------------------------------------------
My setup:
Mic: https://amzn.to/44HGe1H
Laptop: https://amzn.to/3pclzTe
Keyboard: https://amzn.to/3B3e3Nn
Mouse: https://amzn.to/3VLKB82
Download
0 formats
No download links available.
Singleton Design Pattern explained in Hindi (हिंदी) with code example C# | Design Patterns Series | NatokHD