god-object
Pulling dependencies out of "god" objects in a DI framework
I have a Servlet that has a lot of existing code. I\'m trying to add dependency injection into one part of it. Currently I am doing it manually:[详细]
2023-03-28 05:39 分类:问答What to do to prevent God Object?
I know that it is poor programming and architecture when you have a class object that is only to be used in one place. But I\'ve also been warned about creating an object that is all powerful and that[详细]
2023-03-19 22:07 分类:问答Is a class that manages multiple classes a "god object"?
Reading the wikipedia entry about God Objects, it says that a class is a god object when it knows too much or开发者_如何学C does too much.[详细]
2023-02-01 12:54 分类:问答I have a class with 14 static methods and 4 static properties - is that bad?
I have been writing a PHP class that is exactly 450 lines long and it contains 14 static methods and 4 static properties as well as 6 constants (and private __construct() and __clone()).[详细]
2023-01-29 06:34 分类:问答How can I write a Controller without making it a God object?
In 开发者_Python百科my app I have a Controller that\'s started by the main method. The controller initializes hooks, database connections, the UI, another connection, and other things. It holds most o[详细]
2023-01-21 14:17 分类:问答How can I take advantage of IObservable/IObserver to get rid of my "god object"?
In a system I\'m currently working on, I have many components which are defined as interfaces and base classes.Each part of the system has some specific points where they interact with other parts of[详细]
2022-12-20 03:22 分类:问答God object - decrease coupling to a 'master' object
I have an object called Parameters that gets tossed from method to method down and up the call tree, across package boundaries. It has about fifty state variables. Each method might use one or two var[详细]
2022-12-08 13:38 分类:问答