Binding
Name binding is the association of an identifier with the program entity or value it denotes.
Get Programming: Learn to code with Python
An association between a name and the object to which that name refers.
- How it is used
- Uses binding to name objects for later calculations, input, and output.
- How deep it goes
- Defines binding through assignment examples, then traces rebinding through an immutable-object memory diagram.
- Examples
- Walks through `a = 1`, `b = 2`, `c = a + b`, reassignment, and a minutes-conversion program.
- What you can do after
- Build it from scratch: initialize descriptive variables, use them in calculations, and recognize when reassignment changes a name’s binding.
Read how Get Programming: Learn to code with Python explains binding →
Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS
A variable is a named storage location that holds a value or collection of values and can be assigned a new value.
- How it is used
- Stores command results, reusable values, collections, and changing script inputs for interactive administration and automation.
- How deep it goes
- Explains assignment, naming, quoting, collections, types, pipelines, cmdlets, and scope through runnable administrative examples.
- Examples
- Uses computer names, process identifiers, collections, quoted phrases, numeric input, background jobs, services, CSV, and CLIXML.
- What you can do after
- Apply variables to store, inspect, transform, type, export, and parameterize PowerShell data and commands.
The Well-Grounded Rubyist, Fourth Edition
A variable is a Ruby identifier that refers to changeable stored information.
- How it is used
- Uses variable bindings to explain how assignment, shared references, and reassignment affect objects.
- How deep it goes
- Works through mutation and reassignment, then explains captured local bindings for `eval`; notes immediate-value exceptions without detailing their internals.
- Examples
- Contrasts string replacement with string reassignment and uses a captured top-level binding to evaluate `puts str` inside a method.
- What you can do after
- Diagnose/debug with it when two variables reflect one mutation but diverge after reassignment.
Read how The Well-Grounded Rubyist, Fourth Edition explains binding →
The Quick Python Book, Fourth Edition
A binding is an association between an identifier and an object in a namespace.
- How it is used
- Uses bindings to explain how Python names refer to objects and how namespaces resolve them.
- How deep it goes
- Explains assignment, rebinding, shared mutable objects, function-local namespaces, and name lookup with compact examples.
- Examples
- Demonstrates shared list mutation, integer rebinding, temperature-conversion functions, and namespace inspection.
- What you can do after
- Diagnose/debug name references, shared-object changes, and namespace collisions using locals() and globals().
Read how The Quick Python Book, Fourth Edition explains binding →
Modern C
A variable is a named C data object whose stored value can change during execution, including when its storage is local to a function invocation.
- How it is used
- Uses variables to represent named values manipulated during C program execution.
- How deep it goes
- Explains declarations, value changes, initialization, and optimization through worked examples, while deferring variable-length array details.
- Examples
- Traces a floating-point assignment and compares scalar, positional array, and designated initializers.
- What you can do after
- Evaluate and understand variable values through initialization, assignment, and subsequent evaluation.
Learn Rust in a Month of Lunches
A variable is a named program binding that refers to a value and may permit reassignment according to its declaration.
- How it is used
- Defines named values and demonstrates how Rust programs declare, use, scope, mutate, and shadow them.
- How deep it goes
- Explains declaration, type inference, scope, block results, mutability, and shadowing, without descending into compiler or memory internals.
- Examples
- Uses named numbers, color strings, formatted println! output, nested blocks, returned block values, and scope errors.
- What you can do after
- Build it from scratch by declaring Rust bindings, using them in output, controlling mutability, and returning values from blocks.
Read how Learn Rust in a Month of Lunches explains binding →
Modern C, Third Edition
A variable is a named object whose stored value can be accessed and may change during program execution.
- How it is used
- Defines variables as named data objects that store values within C declarations and program statements.
- How deep it goes
- Distinguishes object, type, value, and identifier, but defers pointer details and fuller type semantics.
- Examples
- Uses argc, i, A, and argv declarations, plus assignment and increment operators in a small C program.
- What you can do after
- Understand variable declarations and distinguish a variable's name, object, type, and stored value.
Learn AI-Assisted Python Programming, Second Edition
- How it is used
- Uses variables to remember values, capture function results, store input, and support later expressions or output.
- How deep it goes
- Explains naming, assignment, reassignment, expressions, persistence, and augmented assignment, without descending into runtime internals.
- Examples
- Demonstrates storing function results, capturing a name from input, and updating age with ordinary and augmented assignments.
- What you can do after
- Builds simple Python statements that store, reuse, print, and update values during a program session.
Read how Learn AI-Assisted Python Programming, Second Edition explains binding →
The Art of Code
A variable is a named storage location or binding whose associated value can be read or changed during program execution.
- How it is used
- Uses variables to make narrative code readable by expressing roles, intent, scope, and transformations.
- How deep it goes
- Explains placement, scope, naming, role, and mutable-state risks, but stops short of runtime binding internals.
- Examples
- Uses promotional-email construction and a Java book-format switch to contrast focused variables with redundant or fragile state.
- What you can do after
- Apply variable naming, scope, and mutability choices that reduce cognitive load and clarify transformations.
Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond
A named program binding that refers to a value and may or may not be reassigned depending on its declaration form.
- How it is used
- Explains when JavaScript names can be reassigned and why `const` does not make referenced objects immutable.
- How deep it goes
- Works through reassignment, mutation, and block scope without detailing engine internals.
- Examples
- Uses a constant object whose properties change before reassignment fails, and an array that can be modified without rebinding.
- What you can do after
- Understand how reassignment differs from mutation when choosing between `const` and `let`.
Python How-To
- How it is used
- Uses variable assignment and inspection to support task processing, type hinting, and debugging.
- How deep it goes
- Explains initialization, reassignment, type hints, and local-value inspection, but not a general name-resolution model.
- Examples
- Uses reassignment from an integer to a string, task-variable initialization, and debugger inspection of local values.
- What you can do after
- Diagnose function state by inspecting individual variables or the local namespace in the debugger.
Also covered in
- Kotlin in Action, 2E
- Acing the CCNA Exam: Volume 2 Advanced Networking and Security
- 100 C++ Mistakes and How to Avoid Them
- Rust in Action: Systems programming concepts and techniques
- Julia as a Second Language
- Tiny Python Projects: Learn coding and testing with puzzles and games
- The Coder CafeIn early access (MEAP)
- Elixir in Action, Third Edition
- Terraform in Depth: Infrastructure as Code with Terraform and OpenTofu
What to know first
- functionA function is a callable unit of program code that performs a computation or operation, can accept inputs, and may produce a result or side effect.
- integerAn integer is a whole-number mathematical value, including negative numbers, zero, and positive numbers, with no fractional part.
- stringA string is a programming-language value representing textual data as an ordered sequence of characters or encoded units.
- blockA code block is a grouped region of code treated as a unit, with boundaries and scope or execution behavior determined by its language or context.
Related concepts
- immutable collectioncontrasts with · An immutable collection is a collection whose contents cannot be changed after it is created.
- objectkind of · An object is a distinct entity represented or manipulated within a computational system, typically as a value, data structure, resource, or instance of a type.
- assignmentequivalent to · Assignment is a programming-language operation that binds or stores an evaluated value in a variable, property, or other assignable location.
- global variableincludes · A global variable is a variable whose binding is accessible from broad program or module scopes according to the language’s name-resolution rules.
- referenceuses · A reference is an indirect value, binding, or relationship that identifies or provides access to another object, value, resource, or source.
Questions about binding
What is binding?
Name binding is the association of an identifier with the program entity or value it denotes.
Which Manning books explain binding?
Get Programming: Learn to code with Python, Learn PowerShell in a Month of Lunches: Fourth Edition, Covers Windows, Linux, and macOS, The Well-Grounded Rubyist, Fourth Edition, The Quick Python Book, Fourth Edition, Modern C, Learn Rust in a Month of Lunches, Modern C, Third Edition, Learn AI-Assisted Python Programming, Second Edition and 3 more.
What should I know before learning binding?
Manning books that teach binding usually introduce function, integer, string and block first.
What is the difference between binding and immutable collection?
Name binding is the association of an identifier with the program entity or value it denotes. An immutable collection is a collection whose contents cannot be changed after it is created.
What kinds of binding are there?
Kinds of binding include uninitialized variable and global variable.
What is binding a kind of?
Binding is a kind of object. An object is a distinct entity represented or manipulated within a computational system, typically as a value, data structure, resource, or instance of a type.
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.










