---
title: "Comment by Strahinja Djuric on \"Software design principles: DRY\" | Hashnode"
description: "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"
url: "https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d/comment/5fb271d94d7a63560277d626"
---

[Discussion](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d)

Comment [Software design principles: DRY](https://hashnode.com/posts/software-design-principles-dry/5fb205a90f6d4f4d2f66a99d)

[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 ✌️
