Комментарии:
But it does not throw any exception if Singleton constructor is called for very first time instead of calling getInstance method, do we have any solution for this?
ОтветитьWhat is there are two threads trying to create this object at the same time? Maybe both of them have checked __instance at the same time and found it to be None. Will it not create two different objects in this case?
ОтветитьBest explanation I've seen so far regarding Singleton Design in Python. Thanks so much!
ОтветитьGreat video, man! Coming off Java, this topic was a little much to wrap my mind around. Also, probably the first thing that I've found that would be easier to do in Java than Python lol.
Thanks for the help!
'simple' but controversial - and even despised by some - pattern.
Excellent video and you gained a new subscriber.
No words except THANK YOU! But disappointed you didn’t upload more design pattern videos 💔
Ответитьtf is this bro
ОтветитьCan't believe how clear you made this to understand!
ОтветитьCrystal clear explanation. I too like the second approach as it deals with general object class . Subscribed the channel 👍
ОтветитьI jumped from video to video trying to find one that explained clearly and finally, yours explained it clearly thanks!!!
ОтветитьDont know why this video has not more views. It is extremely straightforward, informative and clear.
ОтветитьGreat, but in second approach _init_ method still get called and breaks current object.
ОтветитьI wish there are more design patterns in Python in this playlist!
ОтветитьKeep it up! Thank you very much.
ОтветитьI have to admit, you real good explainer, you go on details. You know your what you know and there is no doubt about it. I wish you have all Python course module by module. Thanks so much.
ОтветитьGreat content.
Shouldnt we use not None instead of != None
I have been studying this singleton pattern from last 3 days on the internet but none of them was explaining this that way.I must say this is the best way the singleton is explained on the internet kindly upload more design pattern. From india❤️
ОтветитьGreat explanation
ОтветитьThank You for your videos.
Please upload more videos on python design patterns if it's possible from your side.
Thank You 👍