Software Engineering KB

Home

❯

05 Software Design and Architecture

❯

00 OOP and SOLID Principles

❯

02 Sub Concept

❯

Predictable Side Effects

Predictable Side Effects

Feb 10, 20261 min read

  • property
  • least-astonishment
  • side-effects

Predictable Side Effects

← Back to Principle of Least Astonishment

Functions and methods should have side effects that are obvious from their name and signature. Hidden side effects — like modifying global state, sending emails, or writing to disk — surprise callers and introduce subtle bugs.

property least-astonishment side-effects


Graph View

Backlinks

  • Principle of Least Astonishment

Created with Quartz v4.5.2 © 2026

  • GitHub