Skip to content

Glossary: Software Design Patterns in JavaScript

God object

Also written: god function

An anti-pattern where one class or module does far too much, like a Shop class with 40 methods. The old placeOrder is a small god function.

Where the book teaches it

Related terms

Single responsibility principle (SRP)Anti-pattern