Nov 10, 2018

God Class

God class is a class that does or knows too much. It breaches the Single Responsibility Principle. It often does not fit in well with TDD (Test Driven Development) purely because the class is hard to test in that it rely on external dependencies which are very hard to mock out. Also, it does not model the system in any way so maintainability is out of the question. If you have god classes, you will also have god unit test classes and projects too.