God Objects

An example of anti pattern

  1. God Object is an object that knows too much or does too much
  2. God object will hold lot of data and required many methods.
  3. They don’t follow single responsibility principle.

Single responsibility principle is a common programming technique to separate large problem into several smaller problems and create a solution for each of them. A given object for a small problem need only know about itself. There is only one set of problem an object needs to solve: its own problem.

4. God object can be useful for tight programming such as microcontrollers where the performance increase and centralization of control are more important than maintainability and elegance.

source: https://en.wikipedia.org/wiki/God_object

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Rashmi Srivastava
Rashmi Srivastava

Written by Rashmi Srivastava

I love learning. I am here to share the same love. Also, an Engineer.

Responses (1)

Write a response