Problems with Singleton Pattern

后端 未结 7 536
渐次进展
渐次进展 2020-11-27 12:16

I\'ve been reading about Singleton pattern for last few days. The general perception is that the scenarios where it is required are quite few (if not rare) probably because

相关标签:
7条回答
  • 2020-11-27 13:02

    If you haven't seen the article Singletons are Pathological Liars, you should read that too. It discusses how the interconnections between singletons are hidden from the interface, so the way you need to construct software is also hidden from the interface.

    There are links to a couple of other articles on singletons by the same author.

    0 讨论(0)
提交回复
热议问题