liveBook · Manning

Bug

A software bug is a defect in software or a related system component that causes behavior to differ from what is intended or expected.

How 3 Manning books explain it

Learn AI-Assisted Python Programming, Second Edition

A software bug is a defect in a program that can cause it to produce incorrect behavior or fail under particular conditions.

How it is used
Uses bugs to teach code diagnosis, repair, and deeper understanding of program behavior with Copilot and debugging tools.
How deep it goes
Defines syntax and logical errors, demonstrates print-based diagnosis, and applies boundary testing, while deferring extensive low-level implementation detail.
Examples
Demonstrates word matching with Dan and danger, boundary counting from 3 to 7, targeted print statements, and corrected Python conditions.
What you can do after
Diagnose and fix bugs by testing functions, inspecting code behavior, using targeted output, prompting Copilot, and applying debugger tools.

Read how Learn AI-Assisted Python Programming, Second Edition explains bug →

Statistics Every Programmer Needs

A defect is an imperfection or nonconformity that causes a product or unit to fail a specified quality criterion.

How it is used
Uses defective-item counts and proportions to monitor process stability and identify observations requiring quality investigation.
How deep it goes
Demonstrates definitions, chart selection, control-limit calculations, Python implementation, visualization, and interpretation of out-of-control points.
Examples
Uses orange-juice can batches containing physical damage, sealing, labeling, corrosion, and contamination examples.
What you can do after
Diagnose/debug with it by selecting an attribute chart, calculating control limits, plotting defects, and investigating unusual observations.

Read how Statistics Every Programmer Needs explains bug →

"Looks Good to Me"

An error or flaw in software that can cause incorrect, unsafe, or undesirable behavior.

How it is used
Treats bugs as defects to reduce before production through code review and CI/CD, while debating review as the right detection stage.
How deep it goes
Distinguishes obvious, subtle, hidden, low-level, and functionality defects but stops short of a general debugging procedure.
Examples
Uses a passing-test pull request that retrieves data from the wrong cache as a subtle functionality-defect example.
What you can do after
Diagnose bugs with code review by looking for functionality errors that unit tests and the original author missed.

Read how "Looks Good to Me" explains bug →

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.