Yes, useful classes are a good idea, but, as with any object-oriented programming, you should strive for maximum cohesion, minimal communication.
Maximum grip means that everything in the same class must be strongly connected to each other. Minimal communication means that there should not be unnecessary dependencies between classes.
In other words, joint compression with image manipulation or the start of external processes in one class is a bad idea. In every sense, there is a compression utility class and an image processing utility class, but do not combine them.
This is similar to using the singleton pattern as a god object, a ghetto where you simply dump all your garbage that needs to be better organized. I would say it's good to use the uber-utility class at design time, but make sure your code is better organized before submitting. The service will be much easier.
Is this a good practice?
No, not in the long run, although it is useful when done temporarily.
Will things be unmanageable when the number of functions increases and increases?
Yes, no question about that.
paxdiablo Jul 22 2018-10-22T00: 00Z
source share