liveBook · Manning

Implicit input

An implicit input is a dependency on surrounding state or context that affects a computation without appearing as an explicit function argument.

How 2 Manning books explain it

Grokking Simplicity

An input obtained by a computation from surrounding state or context rather than supplied explicitly as a function argument.

How it is used
Uses implicit inputs to distinguish actions from calculations and guide incremental improvements to function design.
How deep it goes
Explains hidden reads, global-state coupling, and argument conversion through worked shopping-cart refactorings; it stops short of eliminating all actions.
Examples
Demonstrates shopping carts, shipping icons, tax calculations, DOM updates, and asynchronous cart totals.
What you can do after
Diagnose/debug with it by locating hidden global reads and converting them into arguments to improve reuse and testability.

Read how Grokking Simplicity explains implicit input →

Unit Testing Principles, Practices, and Patterns

A hidden input is an implicit dependency on internal or external state that affects a computation without appearing as an explicit argument.

How it is used
Defines hidden state as a criterion for separating business logic from side effects and selecting an appropriate unit-testing style.
How deep it goes
Explains the definition, testing consequence, and database refactoring trade-off, but stops short of implementation details beyond the method signature.
Examples
Uses Increment with internal state and AuditManager.AddRecord with a database dependency to contrast explicit and hidden inputs.
What you can do after
Diagnose hidden dependencies, predict when output-based testing becomes unavailable, and choose between eager data gathering and delegated lookup.

Read how Unit Testing Principles, Practices, and Patterns explains implicit input →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.