About 636,000 results
Open links in new tab
  1. Duplicate Code - Refactoring.Guru

    Duplicate Code Signs and Symptoms. Two code fragments look almost identical. Reasons for the Problem. Duplication usually occurs when multiple programmers are working on different parts …

  2. How much duplicated code do you tolerate? - Stack Overflow

    If the code in question has a clear business or technology-support purpose P, you should generally refactor it. Otherwise you'll have the classic problem with cloned code: eventually …

  3. Code Duplication: Best Practices for Maintainable Programming

    Mar 1, 2024 · Duplicated code refers to the presence of identical or very similar code in multiple locations within a program. While it may seem harmless at first, code duplication can have a …

  4. Duplicate code - Wikipedia

    In computer programming, duplicate code is a sequence of source code that occurs more than once, either within a program or across different programs owned or maintained by the same …

  5. Types of Duplication in Code - Simple Programmer

    I’ve found that there are three basic types of duplication that we can eliminate from our code that successfully build on each other. Data ; Type ; Algorithm ; Most developers tend to get stuck at …

  6. How to Refactor Duplicate Code with examples - codeant.ai

    Nov 19, 2024 · To effectively refactor duplicate code, it's essential to recognize the types of duplication present and apply appropriate strategies to eliminate them. Here’s a …

    Missing:

    • Program

    Must include:

  7. Refactoring Duplicate Code. Engineering Insights - Medium

    Aug 30, 2020 · There are several different ways in which code can be reorganized, but one of the most common refactoring tasks that you’ll be tasked with is elimination of duplicate code.

  8. What is Duplicated Code? - Jellyfish

    Managing duplication begins by detecting its existence within the codebase. Advanced tools and methodologies can be used for detecting duplicated code. Examples include using static code …

  9. object oriented - How to remove duplicate code (in general)?

    In your examples, within a class this would be the extracted method and within a set of classes the pulled-up method within the base class. In copy-paste code, this would be to remove the …

    Missing:

    • Program

    Must include:

  10. Chapter 5 - Finding Code Smells - Invent with Python

    The solution to duplicate code is to deduplicate it; that is, make it appear once in your program by placing the code in a function or loop. In the following example, I’ve moved the duplicate code …

Refresh