liveBook · Manning

Rule

A rule is an explicitly specified condition, procedure, or directive that governs behavior, decisions, or outcomes in a defined domain.

How 2 Manning books explain it

Outlier Detection in Python

A rule is an explicitly specified condition or procedure that classifies or responds to data according to predetermined criteria.

How it is used
Flags known patterns in records or sorts detector-flagged outliers into categories for investigation.
How deep it goes
Works through row-wise tests, immediate flags, weighted scores, and post-detection labels; cautions that thresholds need judgment and tuning.
Examples
Uses staff-expense checks and network-session duration and error-rate tests.
What you can do after
Build it from scratch to flag specified records or label detector results, then inspect scores for patterns the labels may miss.

Read how Outlier Detection in Python explains rule →

Collaborative Software Design: How to facilitate domain modeling decisions

A rule is a prescribed condition or policy that determines permitted behavior or outcomes in a domain.

How it is used
Uses rules to expose stakeholder expectations and discover acceptance criteria through collaborative examples.
How deep it goes
Explains rule capture, concrete-example testing, and discovery of additional rules through what-if discussions.
Examples
Uses cinema seating, “Only 1 ticket per seat,” adjacent reservations, and “No Orphan Seats” as concrete examples.
What you can do after
Apply via Example Mapping to document known policies, test edge cases, and turn discussions into clarified rules.

Read how Collaborative Software Design: How to facilitate domain modeling decisions explains rule →

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.