Design Patterns: Singleton

  Рет қаралды 28,912

Microsoft Visual Studio

Microsoft Visual Studio

Күн бұрын

This is the fifth of an eight part series where Robert is joined by Phil Japikse to discuss design patterns. A design pattern is a best practice you can use in your code to solve a common problem. In this episode, Phil demonstrates the Singleton pattern. This pattern restricts the instantiation of a class to one instance and provides global access to that instance.
Resources:
- Sample code: github.com/skimedic/presentat...
- Design Patterns: Elements of Reusable Object-Oriented Software book: www.amazon.com/Design-Pattern...
- Head First Design Patterns book: www.amazon.com/Head-First-Des...

Пікірлер: 12
@ChristopherOkhravi
@ChristopherOkhravi 6 жыл бұрын
Thanks for this high quality series guys :) Imho however this video needs more warnings. There are many who argue that *Singleton simply is bad practice*. Myself included. There's too much potential downside and not enough upside. For anyone interested I would recommend the Clean Code Talks by Miško Hevery or my video on Singleton. Clearly, people have different opinions, but I oppose usage of the static keyword altogether since it removes the object orientation from object oriented programming. Hence the Singleton pattern must also be opposed.
@sanjayy2936
@sanjayy2936 2 жыл бұрын
Surprising to see that these guys are still presenting together ...
@boom_shankar
@boom_shankar 6 жыл бұрын
Thanks for creating this awesome series! You should add part number in the title of the video. So it will be easier for us to find the first part of the series. If there's a playlist of this series, that'll be even more helpful!
@sidneylc28
@sidneylc28 4 жыл бұрын
It is a show on Channel 9 called Visual Studio Toolbox
@yonagamburg
@yonagamburg 6 жыл бұрын
Really great series you got there! Keep it up! :D
@theitalian94
@theitalian94 6 жыл бұрын
Good one, keep up the good work! Greets from Italy! :)
@thinkGrey_
@thinkGrey_ 2 жыл бұрын
nicely done
@Hasi29347
@Hasi29347 3 жыл бұрын
Order of videos according to: www.skimedic.com/blog/page/Books-and-Courses Patterns and Architecture on Visual Studio Toolbox (2017) SOLID Design Patterns Command/Memento Patterns Strategy Pattern Template Method Pattern Observer/Publish-Subscribe Patterns Singleton Pattern Factory Patterns Adapter/Facade Pattern Decorator Pattern
@karthiksrivatsa8243
@karthiksrivatsa8243 4 жыл бұрын
What happens if we try to instantiate from Reflection?? We can also set the private values to be null.
@Hasi29347
@Hasi29347 3 жыл бұрын
Reflection might be dangerous world for singletons
@InfinityDsbm
@InfinityDsbm 2 жыл бұрын
be nice if they would of showed how to inject this
@fwd79
@fwd79 5 жыл бұрын
Full list for this series: 0. SOLID Design Patterns (start from here): kzbin.info/www/bejne/l5jOiIyGish_psk 1. Design Patterns: Command/Memento: kzbin.info/www/bejne/sIPFeZ96mtShaac 2. Design Patterns: Strategy: kzbin.info/www/bejne/h4usp5-krpaCpM0 3. Design Patterns: Template Method: kzbin.info/www/bejne/g5ekp6Zmo56og9U 4. Design Patterns: Observer and Publish-Subscribe: kzbin.info/www/bejne/bWPFlZR6oZl-gq8 5. Design Patterns: Singleton: kzbin.info/www/bejne/qZOwfWaue62FmKs 6. Design Patterns: Factories: kzbin.info/www/bejne/gHbOaHWVfLp4qMU 7. Design Patterns: Adapter and Façade: kzbin.info/www/bejne/jorEYaWjh7KNZ7M 8. Design Patterns: Decorator: kzbin.info/www/bejne/bIGzfoVmfLylkLM
.NET Core 2.0 - Preview 2
57:28
Microsoft Visual Studio
Рет қаралды 10 М.
NO NO NO YES! (50 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:26
PANDA BOI
Рет қаралды 102 МЛН
ХОТЯ БЫ КИНОДА 2 - официальный фильм
1:35:34
ХОТЯ БЫ В КИНО
Рет қаралды 2,7 МЛН
La final estuvo difícil
00:34
Juan De Dios Pantoja
Рет қаралды 29 МЛН
Design Patterns: Factories
25:26
Microsoft Visual Studio
Рет қаралды 54 М.
Design Patterns: Command/Memento
31:08
Microsoft Visual Studio
Рет қаралды 34 М.
Design Patterns: Strategy
13:59
Microsoft Visual Studio
Рет қаралды 37 М.
The Singleton Design Pattern - Part of the Gang of Four
28:41
IAmTimCorey
Рет қаралды 74 М.
Factory Method Pattern - Design Patterns (ep 4)
27:21
Christopher Okhravi
Рет қаралды 532 М.
Design Patterns: Adapter and Façade
22:29
Microsoft Visual Studio
Рет қаралды 17 М.
Design Patterns: Decorator
17:21
Microsoft Visual Studio
Рет қаралды 25 М.
С Какой Высоты Разобьётся NOKIA3310 ?!😳
0:43
Apple, как вас уделал Тюменский бренд CaseGuru? Конец удивил #caseguru #кейсгуру #наушники
0:54
CaseGuru / Наушники / Пылесосы / Смарт-часы /
Рет қаралды 4,6 МЛН
iPhone 15 Pro vs Samsung s24🤣 #shorts
0:10
Tech Tonics
Рет қаралды 10 МЛН
Main filter..
0:15
CikoYt
Рет қаралды 551 М.
#miniphone
0:18
Miniphone
Рет қаралды 12 МЛН