Singleton Pattern – Design Patterns (ep 6)

preview_player
Показать описание
Video series on Design Patterns for Object Oriented Languages. This time we look at the Singleton Pattern.

💙 BUY MY BOOK:

► The playlist

► Head First: Design Patterns

► Design Patterns: Elements of Reusable Object-Oriented Software

► Clean Code Talks at Google, by Miško Hevery

💪 Patreon Community

📚 Products I Recommend
Рекомендации по теме
Комментарии
Автор

Boss: My wife is cheating on me
Programmer: One man's constant is another man's variable....

mphophantshang
Автор

One of the best series I have ever watched. Keep going on dude!

mohammadnaseri
Автор

Your editing is absolutely fantastic. The stream of knowledge never stops or slows down.

Tapuck
Автор

I love the way you teach. Your explanations are thorough and the way you speak is very captivating. Straight to the point, you are not a time waster.

dalitsobotha
Автор

That's a good video. Especially the code smell part. I would add though that to ensure single instance you also need to wrap instance creation with lock (Monitor), because nowadays threads are used left and right. In fact, "double-checked locking" (that's a pattern) should be used

if (instance == null) {
lock (_lockObject) {
if (instance == null) {
instance = new Singleton();
}
}
}

mikhailbisserov
Автор

U, my good Sir are born for teaching, really nice and simple explanation for everyone to understand. Keep up the good job!
cheers

IamCagedAnimal
Автор

This series is greatest I've ever encountered on youtube on any topic, period.

SaurabhGuptaicecool
Автор

You are criminally underrated. Deserves more followers. Top notch.

karzo
Автор

The way you teach these lessons is perfect. This is a good example for my lecturers how to teach these stuff.

ruvishkarathnayake
Автор

That's what I call 'in-depth explanation'! Awesome work.

sammclaren
Автор

This is why I love the internet, good videos with good info. My man!

ckmedia
Автор

don't understand why this video is not popular than it has to be. You are amazingly well explaining abstract concepts so dumb like me can understand. Thanks.

jaycelila
Автор

You are one of the best teachers on the planet. Thanks for the videos.

prapulkrishna
Автор

The best explanation of Singleton pattern i have come across

seguncodes
Автор

If there is anything comparable to your teaching skills, it's your skills to have amazing intros. Intro for this particular video is simply genius. Your intros are so underrated man!

hoelefouk
Автор

Love these videos, thanks Christopher! The Head First series is great.

khadwen
Автор

This is the best explanation of a Singleton pattern ever !!

DAS-jkmw
Автор

The best playlist (on IT/Sw) I have ever watched on YouTube

sushantkumar
Автор

Just so we are clear on all levels, the demonstrated example isn't thread safe, which mean we can have multiple instances of the Singleton class by using different threads. You need the "lock"ing object to secure the thread

karthikkeyan
Автор

Me: Let me learn about Singleton pattern.
Christopher: never use singleton pattern.
Me: -_-

vineetherenj
join shbcf.ru