<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/awL4eMDuS" -->

---
title: Software design principles: DRY | daily.dev
description: DRY stands for Don't Repeat Yourself, meaning you shouldn't type code more than once. The principle states: "Every piece of logic must have a single...
canonical: https://daily.dev/posts/software-design-principles-dry-awl4emdus
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Software design principles: DRY | daily.dev
og:description: DRY stands for Don't Repeat Yourself, meaning you shouldn't type code more than once. The principle states: "Every piece of logic must have a single...
og:url: https://daily.dev/posts/software-design-principles-dry-awl4emdus
og:image: https://api.daily.dev/og/posts/awL4eMDuS.png
og:image:alt: Software design principles: DRY
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Software design principles: DRY

**[Hashnode](https://daily.dev/sources/hashnode)** · [@dailydevtips](https://daily.dev/dailydevtips) · 1 min read · 31 upvotes · 6 comments

## Summary

DRY stands for Don't Repeat Yourself, meaning you shouldn't type code more than once. The principle states: "Every piece of logic must have a single unambiguous representation within a system" I'm going to demonstrate some simple use-cases, but they should give you a good understanding of what DRY means.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://h.daily-dev-tips.com/software-design-principles-dry>

## Community discussion

Top comments from developers on daily.dev.

**@dailydevtips** · 1 upvotes

> Such a DRY article 😂

**@kievandres** · 0 upvotes

> Nice post!

---

Tags: [#general-programming](https://daily.dev/tags/general-programming)

[View this post on daily.dev](https://daily.dev/posts/software-design-principles-dry-awl4emdus)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Software design principles: DRY","url":"https://daily.dev/posts/software-design-principles-dry-awl4emdus","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/software-design-principles-dry-awl4emdus"},"datePublished":"2020-11-16T06:22:24.667Z","dateModified":"2021-10-07T14:17:10.317Z","description":"DRY stands for Don't Repeat Yourself, meaning you shouldn't type code more than once. The principle states: \"Every piece of logic must have a single...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ee1f66735377846fdbbaf37a9e5cd6bf","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/ee1f66735377846fdbbaf37a9e5cd6bf","isAccessibleForFree":true,"articleSection":"Hashnode","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Chris Bongers","url":"https://daily.dev/dailydevtips","image":"https://media.daily.dev/image/upload/s--9gxFz1e7--/f_auto/v1705902590/avatars/avatar_JUNiIGCV-?_a=BAMAMiZW0","description":"Daily blogger and web team lead at daily.dev 💖","worksFor":{"@type":"Organization","name":"daily.dev","logo":"https://daily-now-res.cloudinary.com/image/upload/s--MASZOhnv--/f_auto/v1614088267/landing/Daily.dev_logo"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":52755}},"commentCount":6,"discussionUrl":"https://daily.dev/posts/software-design-principles-dry-awl4emdus","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":31},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":6}],"keywords":"general-programming","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hashnode","item":"https://daily.dev/sources/hashnode"},{"@type":"ListItem","position":3,"name":"Software design principles: DRY"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/software-design-principles-dry-awl4emdus","comment":[{"@type":"Comment","text":"Such a DRY article 😂","datePublished":"2020-11-16T06:31:09.848Z","url":"https://daily.dev/posts/awL4eMDuS#c-42ectfUV9","author":{"@type":"Person","name":"Chris Bongers","url":"https://daily.dev/dailydevtips","image":"https://media.daily.dev/image/upload/s--9gxFz1e7--/f_auto/v1705902590/avatars/avatar_JUNiIGCV-?_a=BAMAMiZW0"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Nice post!","datePublished":"2020-11-16T15:24:38.010Z","url":"https://daily.dev/posts/awL4eMDuS#c-BxIbtOdef","author":{"@type":"Person","name":"Kiev Mendoza","url":"https://daily.dev/kievandres","image":"https://avatars3.githubusercontent.com/u/28435811?v=4"}}]}
```

