I previously used Singletons for global classes, if absolutely necessary, that is, a log, error handling. But now I use unit testing that they don’t like!
I would like to ask a basic question about global signs. What is the point of them? What happened to creating a new instance of the class when you need it?
It’s true, sometimes singletones can create problems that you won’t have without them.
I am trying to give you a list of my thoughts on this subject:
, . SOA, , .
, .
Singleton, . , , .
- , . AS3 . , , , . , , .
SO-: ?
, , , / , - .
, , , , , .
Source: https://habr.com/ru/post/1789728/More articles:Export oracle database to another server - oracleThe list shows black color - androidRunning C code on an Objective-C thread (Cocoa) (for iOS) - cHow to use iText to add watermark using inline font - javaCloning git private repo using Integrity Continuous Integration - integrityBinding inside item list itemtemplate problems - wpfЛюбое учебное пособие/хорошая документация о том, как использовать реализацию конверсии Gaussians в Mixture? - opencvHow to copy file to tomcat webapp folder using maven? - javaAutomatically tune MySQL parameters in C # - dictionaryOverride - winformsAll Articles