Singleton - Good or Bad?

  Рет қаралды 10,618

iCode

iCode

Күн бұрын

Пікірлер: 21
@preetipandey3905
@preetipandey3905 2 жыл бұрын
Would love to have more videos on Design Pattern. Thanks for having such a quality content.
@SwiftUIForBeginners_TY
@SwiftUIForBeginners_TY Жыл бұрын
Very Very well explained video. I am making an app and at first I too was going to be using it to store variables I needed globally, but turned out what I was looking for was AppStorage. But, now I need to make sure that only one instance of a class is made, and I appreciate that instead of just saying "Singletons are always bad" you explained the reasoning behind it. Thanks a ton!! :)
@riyazahemad
@riyazahemad 2 жыл бұрын
Hi Pallav, great explanation about singleton. We are still waiting for the 6th video in the series of mastering concurrency.
@shlokkadam9174
@shlokkadam9174 Жыл бұрын
Hi, I like the way you explain. Can you please create video on all architecture patterns and which to use when
@KumarLav
@KumarLav 2 жыл бұрын
Hi, You told about Singleton, But you didn’t explained what should be use instead of Singleton..? If I am not going to use singleton then what should I use. What patterns similar to Singleton.
@rasheshbosamiya1482
@rasheshbosamiya1482 2 жыл бұрын
As far as I understood, Singleton is good but the way it is being used is not correct, So there is no alternative of Singleton, it is good at its place. it shouldn't be misused. that's it.
@VirenderDall
@VirenderDall 2 жыл бұрын
As Pallav mentioned in his video if your application need only one instance of a class use singleton and if not than inject the required object as dependencies.
@InfoEdgeIndia
@InfoEdgeIndia 2 жыл бұрын
yes if single instance is required go for it otherwise try to handle using injection using interface
@aafaqahmed2265
@aafaqahmed2265 2 жыл бұрын
Very useful, I was using as Global data store. I will change the way now.
@badalshah9995
@badalshah9995 2 жыл бұрын
Hi thanks for the detailed video. i have a query like, if you said manage userdata or coredata functions with singletone then what will be the other approach to manage such kind of usage ? where we need to save or fetch same data multiple times .
@puneetpal1466
@puneetpal1466 2 жыл бұрын
Thank you brother, such a nice content and well explained🤞🤞
@vijaybisht2103
@vijaybisht2103 2 жыл бұрын
Your all videos are top class
@vvsdcreations
@vvsdcreations Ай бұрын
Where you bought T-Shirts bro, Please refer
@robingeorge3210
@robingeorge3210 Жыл бұрын
what about Apimanager? we need only one instance of Apimamager right?
@navyaj9846
@navyaj9846 2 жыл бұрын
Thank you for this.
@RajrkSunny
@RajrkSunny Жыл бұрын
Before understanding Dependency injection if we checkout this video then DI becomes more clear.....
@azhagurajaallinall126
@azhagurajaallinall126 2 жыл бұрын
When i visit this video it has 996 views,82 likes & 10 comments in 2 days.. wish it will reach more people.. thanks for video & see ya in future 😃✌ 30.08.2022 08:39 pm ist
@marlonvonansale6457
@marlonvonansale6457 2 жыл бұрын
Love it
@iLoveAppl3947
@iLoveAppl3947 3 ай бұрын
"Breaks SOLID"... man i'm sick of solid rules sometimes... we are in 2024 we can skip some of the solid rules... also Apple is using singleton in UserDefaults. Everyone uses userdefaults so this mean we break the solid shitprinciples?
@SilverSena12
@SilverSena12 8 ай бұрын
Too fast
@victorriurean
@victorriurean 9 ай бұрын
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 62 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 52 МЛН
Singletons in Swift | The Good, The Bad & The Ugly
22:53
AppStuff
Рет қаралды 1,6 М.
Singleton Pattern - Design Patterns (ep 6)
20:09
Christopher Okhravi
Рет қаралды 249 М.
13. Java Singleton and Immutable Class Explained with Examples | Java Classes in Depth - Part4
28:26
Careful With “Singleton” Lookalikes (WAY TOO COMMON)
33:12
Essential Developer
Рет қаралды 16 М.
Why I don't hate Singletons?
11:30
Jason Weimann
Рет қаралды 26 М.
Inheritance vs Interfaces (Protocols) In Swift
18:43
iCode
Рет қаралды 14 М.
8 Design Patterns EVERY Developer Should Know
9:47
NeetCode
Рет қаралды 1 МЛН
The Singleton Design Pattern - Part of the Gang of Four
28:41
IAmTimCorey
Рет қаралды 75 М.
Players vs Corner Flags 🤯
00:28
LE FOOT EN VIDÉO
Рет қаралды 62 МЛН