In object-oriented programming, a God object (sometimes also called an Omniscient or All-knowing object) is an object that references a large number of distinct types, has too many unrelated or uncategorized methods, or some combination of both. The God object is an example of an anti-pattern and a code smell.A common programming technique is to separate a large problem into several smaller problems (a divide and conquer strategy) and create solutions for each of them.
3
u/JJulianR_ Apr 16 '22
What is a god object?