liveBook · Manning

Sentinel value

A sentinel value is a distinguished value interpreted as signaling a special condition, such as a boundary, termination, absence, or exceptional result.

How 2 Manning books explain it

Clojure: The Essential Reference

A sentinel value is a distinguished value whose agreed meaning signals a condition such as termination or absence of further input.

How it is used
Uses a mutually agreed value to terminate daemon-like processing when missing input alone cannot end computation.
How deep it goes
Defines the contract and works through a queued concurrent example, but does not develop a broader sentinel design taxonomy.
Examples
Uses a unique Object, LinkedBlockingQueue events, a worker thread, and hash-printing before termination.
What you can do after
Build it from scratch by coordinating producers and consumers around a unique termination object checked with identical?.

Read how Clojure: The Essential Reference explains sentinel value →

Financial AI in Practice

A designated data value used to represent a special condition, such as missing or inapplicable information, rather than a valid measurement.

How it is used
Handles placeholder codes in credit data to reduce distortion and support fair, stable modeling.
How deep it goes
Gives steps for identifying, validating, binning, and documenting codes, but does not specify a coding implementation.
Examples
Uses -9999 for no bureau record and 8888 for unknown employment type as example codes.
What you can do after
Diagnose/debug credit-data skew by identifying sentinel codes, separating their bin, and documenting default-rate effects.

Read how Financial AI in Practice explains sentinel value →

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.