@Mackey
Dai anche un occhio al design pattern
registry
![]()
Dopo le levate di capo prese
in questo pattern istanzio la classe
una volta e la passo per aggregazione
dove serve
Patterns are not perfect in all situations and the Registry pattern is no exception. It helps simplify our source code but there are issues to watch out for. For one thing, the use of a Singleton Registry replaces numerous Singletons but still has a global nature. This is warning enough to be careful using the Registry.
Insomma non lo si deve mettere da tutte le parti![]()