liveBook · Manning

Principle

A principle is a general rule, guideline, or value that guides decisions, behavior, or judgments.

How 5 Manning books explain it

LLM Evaluation and Alignment, The Foundational Ideas

A constitutional principle is an abstract behavioral or ethical rule that an AI system is expected to follow.

How it is used
Guides AI critics to critique, revise, and compare responses against explicit behavioral rules.
How deep it goes
Explains principle selection and critique-revision steps, then examines coverage gaps, stylistic leakage, and inconsistent interpretation.
Examples
Uses harmlessness prompts and an arson-related response to illustrate critique and revision.
What you can do after
Evaluate and understand how explicit rules shape synthetic training feedback and where their application can fail.

Read how LLM Evaluation and Alignment, The Foundational Ideas explains principle →

Design for Developers

A general guideline for directing decisions about the visual and experiential qualities of a product or interface.

How it is used
Guides content relationships, hierarchy, and layout before wireframing and visual styling.
How deep it goes
Names five foundational principles and explains their role, while deferring the step-by-step web-page exercise.
Examples
Compares a planned house with consistent proportions to one built without a plan to illustrate website layout.
What you can do after
Build it from scratch: shape a project-specific design system rather than relying on a third-party framework.

Read how Design for Developers explains principle →

Software Design for Python Programmers

A design principle is a general guideline for structuring software to improve qualities such as flexibility, correctness, and performance.

How it is used
Guides functions, classes, and collaborating classes toward sustainable software that handles changing requirements.
How deep it goes
Develops principles through before-and-after examples, iteration, implementation hiding, and tradeoffs, without prescribing one complete architecture.
Examples
Uses basic-feature Python programs, before-and-after comparisons, requirement changes, and iterative refactoring with backtracking.
What you can do after
Evaluate and improve code by isolating change, reducing dependencies, managing complexity, and selecting supporting design patterns.

Read how Software Design for Python Programmers explains principle →

Object-Oriented Software Design in C++

A design principle is a general guideline for structuring software to improve qualities such as flexibility and maintainability.

How it is used
Improves code and class designs while guiding iterative development toward flexible, maintainable applications.
How deep it goes
Explains application across lines, functions, classes, and class groups, then connects principles to encapsulation, coupling, and patterns.
Examples
Uses before-and-after C++ programs, iterative application development, requirements analysis, implementation hiding, and backtracking over poor decisions.
What you can do after
Apply design principles to improve code, manage change and complexity, and refine applications through iteration and backtracking.

Read how Object-Oriented Software Design in C++ explains principle →

Reinforcement Learning from Human Feedback

A principle is a rubric criterion expressing a desirable quality that guides evaluation without being an absolute requirement.

How it is used
Guides rubric-based evaluation, synthetic feedback, preference judgments, and model-behavior specification.
How deep it goes
Defines principles through rubric examples and contrasts them with hard rules, but does not formalize a scoring algorithm.
Examples
Uses museum-exhibit criteria for precision, engagement, selection, consistency, and distinctness.
What you can do after
Evaluate responses by writing weighted, testable criteria that distinguish desirable qualities from hard requirements.

Read how Reinforcement Learning from Human Feedback explains principle →

Also covered in

What to know first

Related concepts

Questions about principle

What is principle?

A principle is a general rule, guideline, or value that guides decisions, behavior, or judgments.

Which Manning books explain principle?

LLM Evaluation and Alignment, The Foundational Ideas, Design for Developers, Software Design for Python Programmers, Object-Oriented Software Design in C++ and Reinforcement Learning from Human Feedback.

What should I know before learning principle?

Manning books that teach principle usually introduce object-oriented programming, requirements, complexity and Constitutional AI first.

What kinds of principle are there?

Kinds of principle include single responsibility principle, accountability and data control.

What is principle a kind of?

Principle is a kind of technique. A technique is a deliberate, systematic, and repeatable method for performing a task, solving a problem, or achieving a desired result.

What is principle part of?

Principle is part of constitution-as-code document. A constitution-as-code document is a written set of principles and behavioral constraints used to guide or evaluate an AI system’s behavior.

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.