Reuse
Reuse is applying an existing resource, implementation, or capability again in another context rather than creating or duplicating it.
Deep Learning with R, Third Edition
Reuse is the application of an existing module, representation, or operation in multiple contexts instead of reimplementing it.
- How it is used
- Organizes complex software and deep-learning architectures by applying modules repeatedly across a hierarchy.
- How deep it goes
- Explains reuse conceptually through software classes, functions, layers, convolution, and repeated blocks without implementation details.
- Examples
- Uses reusable classes and functions, convolution across spatial locations, repeated Xception blocks, and repurposed foundation models.
- What you can do after
- Apply reuse by structuring systems into modules, arranging hierarchies, and reapplying components across tasks or locations.
Read how Deep Learning with R, Third Edition explains reuse →
BDD in Action, Second Edition
Code reuse is the practice of applying existing software code in multiple contexts instead of duplicating its implementation.
- How it is used
- Structures test automation around reusable business tasks that support readable scenarios and composable test flows.
- How deep it goes
- Explains task composition, actor data injection, asynchronous adapters, and partial overrides, stopping short of general software architecture.
- Examples
- Demonstrates reusable login and navigation tasks alongside sign-up scenarios using generated traveler details and duplicate-email overrides.
- What you can do after
- Apply reuse via Screenplay tasks and Serenity/JS data abstractions to build shorter, clearer, and more maintainable test scenarios.
Get Programming: Learn to code with Python
Code reuse is the practice of incorporating existing software components into new programs instead of reimplementing their functionality.
- How it is used
- Uses reusable functions and code wrappers to apply the same behavior to new inputs and related data.
- How deep it goes
- Explains repetition, black-box thinking, and practical function reuse, while deferring the detailed mechanics of writing wrappers.
- Examples
- Uses arithmetic on number pairs, repeated file reading, and area-code-to-state data.
- What you can do after
- Build programs from reusable functions that accept different inputs and process similarly organized data.
Read how Get Programming: Learn to code with Python explains reuse →
.NET MAUI in Action
Code reuse is the practice of using existing software logic or source code across multiple applications, components, or target platforms.
- How it is used
- Moves business logic and shared UI into reusable services, packages, and libraries across applications and platforms.
- How deep it goes
- Explains service extraction, interfaces, shared projects, and package distribution, but stops short of enterprise-scale implementation details.
- Examples
- Uses product search, inventory counting, shared DTOs, MauiStockTake, Blazor applications, and enterprise authentication as examples.
- What you can do after
- Build reusable .NET application logic by extracting services, sharing projects, and packaging common modules.
Modern Angular
Reusability is the property of a software element being applicable in multiple contexts without being rewritten.
- How it is used
- Improves Angular enterprise applications by centralizing guards, interceptors, directives, services, and other repeated building blocks.
- How deep it goes
- Explains duplication, refactoring costs, inject-based composition, standalone architecture, and reusable directives without implementing a complete feature.
- Examples
- Uses HRMS authorization, duplicated role and permission checks, business-logic directives, and shared authentication or authorization events.
- What you can do after
- Apply generalized Angular building blocks to reduce copy-pasting and make cross-cutting behavior easier to refactor.
Grokking Simplicity
The practice of using existing code in multiple places or contexts instead of duplicating its implementation.
- How it is used
- Positions reuse as a design goal supported by function extraction, stratified layers, maintenance, and testing.
- How deep it goes
- Explains reuse with definitions, call-graph rules, and JavaScript refactorings rather than language-runtime internals.
- Examples
- Demonstrates reuse through extracted customer-selection callbacks, lower-layer functions, and call-graph comparisons.
- What you can do after
- Apply reuse through function extraction, lower-layer placement, and named callbacks that reduce assumptions and duplication.
Related concepts
- functionaddressed by · A function is a callable program unit that performs an operation, may accept inputs, and can produce a result or side effect.
- abstractionequivalent to · Abstraction is a simplified representation that exposes relevant properties or behavior while omitting lower-level details unnecessary for a given purpose.
- code duplicationcontrasts with · Code duplication is the presence of equivalent or substantially similar source code or implementation logic in multiple locations within a software system.
- conversational aiused by · Conversational AI is artificial intelligence that enables software systems to interact with users through natural-language dialogue.
- external codeuses · External code is software developed and maintained outside a project or component that incorporates or executes it.
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.





