Skip to content

Glossary: Software Design Patterns in Rust

God object

Also written: god function

One struct or module that does far too much, like a Shop with 40 methods. The fix is to split it by reason to change.

Where the book teaches it

Related terms

Single responsibility principle (SRP)Anti-pattern