# Code Reuse
Code reuse is the practice of writing code that you can use in multiple contexts or applications, instead of creating new code for each new function or application. The goal is to “write once, use many times”.
This practice offers multiple advantages, such as:
- Efficiency: Save time and effort by not having to write the same code over and over again.
- Consistency: Helps ensure that certain functions behave consistently in all parts of an application or in different applications.
- Maintainability: It's easier and faster to update or correct errors in a single reusable codebase than in multiple copies of the same code.
There are several ways to reuse code in web application development. This includes the use of libraries or frameworks, the creation of reusable components, and the organization of the code so that you can easily reference and reuse parts of it in different parts of an application.
# Implementing code reuse with Modyo
Modyo offers several alternatives for reusing code. Depending on the type of project being developed, these options may include:
- Applying code snippets in Liquid.
- Implementation of shared Widgets on multiple sites.
- Deployment of micro frontends in different Web applications.
- Use of intermediate libraries or repositories.
- Use of Web Components.
- Use of Design Systems.
- Integration of external libraries implemented in various Web sites or applications.
Architecture Guide
This guide shows you different ways to reuse code, applying patterns and techniques from our reference architecture to achieve excellent levels of efficiency within development teams.
If you have any questions or need support, don't hesitate to contact our [team of experts] (https://support.modyo.com/).