---
title: "Discussion on \"Software design principles: DRY\" | Hashnode"
description: "Discussion on \"Software design principles: DRY\". Today we'll be exploring a design principle called DRY it stands for Don't Repeat Yourself. Of course, a pretty obvious one, meaning you shouldn't type code more than once.\nThe principle states: \"Every piece of logic must have a single unambiguous re..."
url: "https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Software design principles: DRY](https://h.daily-dev-tips.com/software-design-principles-dry?utm_source=hashnode&utm_medium=feed)

Today we'll be exploring a design principle called DRY it stands for Don't Repeat Yourself. Of course, a pretty obvious one, meaning you shouldn't type code more than once. The principle states: "Every piece of logic must have a single unambiguous re...

Nov 16, 2020 · 2 min read · h.daily-dev-tips.com  
Read the article

-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#programming](https://hashnode.com/tag/programming)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)
-   [#general-advice](https://hashnode.com/tag/general-advice)

## Written by

[Chris Bongers](https://hashnode.com/@dailydevtips)

@dailydevtips · Cape Town, SA

  
[View profile](https://hashnode.com/@dailydevtips)

Looking to get into development? As a full-stack developer I guide you on this journey and give you bite sized tips every single day 👊

I'm a full-stack developer from South Africa 🇿🇦. I love writing about JavaScript, HTML and CSS.

## Responses 5

Markdown supported · ⌘↵ to post

[Olivia Parker](https://hashnode.com/@Olivia1)

[Mar 8, 2022](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/6227e10233120280724e7f53)

A great developer is all about getting ahead of everything, minimizing mistakes to achieve efficiency. This tactic promotes easier coding maintenance, which saves a lot of time. Will share this with my fellow developers. Wonderful tip!

Olivia parker, IT BPO [OBP IT Solutions](https://www.offshorebusinessprocessing.com/it-solutions)

[Code Alt](https://hashnode.com/@Alt)

[Nov 18, 2020](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/5fb48c2da73df361ab711b63)

nice 👌

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 18, 2020](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/5fb48c2da73df361ab711b63#reply-5fb4aab2a73df361ab711d1f)

Thanks! 🤟

[Diego Malta](https://hashnode.com/@diomalta)

[Nov 16, 2020](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/5fb30fee595a24599b2f2e90)

Really the first example makes it difficult to understand but the article was very good. Congrats!

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 17, 2020](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/5fb30fee595a24599b2f2e90#reply-5fb35467595a24599b2f30fd)

Hey Diego,

Thanks for this feedback, think you're right and the first one actually made things more confusing in stead of giving a super high-level overview

[Strahinja Djuric](https://hashnode.com/@Kilgaloon)

[Nov 16, 2020](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/5fb271d94d7a63560277d626)

DRY principle serves to prevent you from copy/pasting code all around, to reduce code base, and for easier maintenance. I think that the first example is not a really good example of the DRY principle. The other one is totally fine.

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 16, 2020](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/5fb271d94d7a63560277d626#reply-5fb274154d7a63560277d683)

I tried to explain the first one is not really about the function, but about the DRY principle.

You must see that reverse as a very extensive function.

Thanks for your comment though, appreciate it ✌️

[नीरज टंगड़िया](https://hashnode.com/@Nick1005)

[Nov 16, 2020](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/5fb248084d7a63560277d24d)

`Nice tips` :)

[Chris Bongers](https://hashnode.com/@dailydevtips)

[Nov 16, 2020](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/5fb248084d7a63560277d24d#reply-5fb26b864d7a63560277d5f3)

Thank you, glad you like the article
