DRY principle

The DRY principle is a best practice in programming that encourages software developers to write code once, and only once. DRY stand for "don't repeat yourself."

The principle is credited to Andrew Hunt and David Thomas, authors of "The Pragmatic Programmer." According to the authors, every discrete chunk of knowledge should have one, unambiguous, authoritative representation within a system. Once redundancies in process and logic are eliminated, technical debt will also decline. 

The DRY principle facilitates the creation of software applications with reusable components and plays an important role in structured programming.

Related Terms

structured programming

You Aren't Gonna Need It

Taco Bell programming

Read More About IT

Which programming practices alleviate code redundancy?

The DRY Principle: Benefits and Costs with Examples

Understanding the modular monolith and its ideal use cases

Refactor vs. rewrite: Deciding what to do with problem softwar

Keep In Touch

For feedback about this definition or to suggest a new definition (or learning resource) please email me or reach out to me on Twitter. Thank you for reading!

要查看或添加评论,请登录

Margaret Rouse的更多文章

  • What is RaaS?

    What is RaaS?

    Ransomware as a Service (RaaS) is a low code, software-as-a-service attack vector that allows criminals to purchase…

    1 条评论
  • What is DeFi?

    What is DeFi?

    DeFi (distributed finance) is a decentralized financial ecosystem built on a blockchain distributed ledger. DeFi…

  • What is Facial Recognition Technology?

    What is Facial Recognition Technology?

    Facial recognition is a biometric technology that uses data to verify the presence of a human being’s face in a digital…

  • What is a Prompt Engineer?

    What is a Prompt Engineer?

    A prompt engineer is someone who specializes in crafting generative AI inputs (prompts) that reliably return useful…

    1 条评论
  • What is a Smart Contract?

    What is a Smart Contract?

    A smart contract is a self-executing agreement in which the terms of the contract are written into lines of code. Smart…

    2 条评论
  • What is SASE?

    What is SASE?

    Secure access service edge (SASE) is a cloud network architecture in which security services are delivered over the…

    4 条评论
  • What is Narrow AI?

    What is Narrow AI?

    Narrow artificial intelligence (narrow AI) is artificial intelligence that is designed to perform a limited number of…

  • What is API Sprawl?

    What is API Sprawl?

    API sprawl is a situation that occurs when an organization's application programming interfaces (APIs) are managed by…

    1 条评论
  • What is Computer Vision?

    What is Computer Vision?

    Computer vision (CV) is the subcategory of artificial intelligence (AI) that focuses on building and using digital…

  • What is a Transformer Model?

    What is a Transformer Model?

    A transformer model is a type of deep learning architecture commonly used in machine learning and artificial…

社区洞察

其他会员也浏览了