Reuse
Reuse is the practice of applying existing software code, components, or behavior in additional contexts instead of reimplementing equivalent functionality.
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.
Also covered in
- High Performance Unity Game DevelopmentIn early access (MEAP)
- Deep Learning with Python, Third Edition
- React Quickly, Second Edition
- Grokking Web Application Security
- Architecture Modernization: Socio-technical alignment of software, strategy, and structure
- Evolutionary Deep Learning: Genetic algorithms and neural networks
- Google Anthos in Action
- 100 C++ Mistakes and How to Avoid Them
- React Hooks in Action: With Suspense and Concurrent Mode
- Python Workout: 50 ten-minute exercises
- The Quick Python Book, Fourth Edition
- Python Workout, Second Edition
What to know first
- business logicBusiness logic is the domain-specific rules, computations, and decisions that determine how a software system processes operations and behaves.
- 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.
- abstractionAbstraction is a simplified representation that preserves relevant properties or behavior while omitting details unnecessary at a given level or for a given purpose.
- model architectureModel architecture is the structural arrangement of a computational model’s components, connections, and operations that determines how it processes inputs and produces outputs.
Related concepts
- functionaddressed by · A 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.
- code duplicationcontrasts with · Code duplication is the presence of the same or substantially similar implementation logic in multiple locations within a software system.
- complexity metricaddresses · A complexity metric is a quantitative measure of the structural intricacy or difficulty of understanding, modifying, or executing software code.
- abstractionequivalent to · Abstraction is a simplified representation that preserves relevant properties or behavior while omitting details unnecessary at a given level or for a given purpose.
- conversational aiused by · Conversational AI is artificial intelligence that enables software systems to interpret user input and 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.
Questions about reuse
What is reuse?
Reuse is the practice of applying existing software code, components, or behavior in additional contexts instead of reimplementing equivalent functionality.
Which Manning books explain reuse?
Deep Learning with R, Third Edition, BDD in Action, Second Edition, Get Programming: Learn to code with Python, .NET MAUI in Action, Modern Angular and Grokking Simplicity.
What should I know before learning reuse?
Manning books that teach reuse usually introduce business logic, function, abstraction and model architecture first.
What is the difference between reuse and code duplication?
Reuse is the practice of applying existing software code, components, or behavior in additional contexts instead of reimplementing equivalent functionality. Code duplication is the presence of the same or substantially similar implementation logic in multiple locations within a software system.
What is reuse also called?
Reuse is also called code sharing.
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.





