---
title: "Discussion on \"Leave the code better than you found it\" | Hashnode"
description: "Discussion on \"Leave the code better than you found it\". You are happily working on a feature. You add a bunch of new code so that it works according to the acceptance criteria. At some point, you decide to reuse some existing code. So you start looking around and then, all of a sudden, you end up in a dif..."
url: "https://hashnode.com/posts/leave-the-code-better-than-you-found-it/6090088dcebc886374b84f54"
---

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

Discussion

# [Leave the code better than you found it](https://blog.tomaszgil.me/leave-the-code-better-than-you-found-it?utm_source=hashnode&utm_medium=feed)

You are happily working on a feature. You add a bunch of new code so that it works according to the acceptance criteria. At some point, you decide to reuse some existing code. So you start looking around and then, all of a sudden, you end up in a dif...

May 3, 2021 · 5 min read · blog.tomaszgil.me  
Read the article

-   [#refactoring](https://hashnode.com/tag/refactoring)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#software-engineering](https://hashnode.com/tag/software-engineering)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Tomasz Gil](https://hashnode.com/@tomaszgil)

@tomaszgil · Poznań, Poland

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

Senior Software Engineer

I help product teams build quality software and lead engineering efforts. Currently working at OpenSpace as a Senior Software Engineer.

## Responses 4

Markdown supported · ⌘↵ to post

[Matthew Rungwe](https://hashnode.com/@codewithmatthew)

[May 5, 2021](https://hashnode.com/posts/leave-the-code-better-than-you-found-it/6090088dcebc886374b84f54/comment/6092a188d1bbc47b91a652cc)

Thank you for the article. This was vivid and very practical. Your tone was drawing and very concise.

[Tomasz Gil](https://hashnode.com/@tomaszgil)

[May 5, 2021](https://hashnode.com/posts/leave-the-code-better-than-you-found-it/6090088dcebc886374b84f54/comment/6092a188d1bbc47b91a652cc#reply-6092fcaba7a3827bb64ccf99)

Thank you, I really appreciate your feedback!

[Luiz Filipe da Silva](https://hashnode.com/@luizfilipezs)

[May 5, 2021](https://hashnode.com/posts/leave-the-code-better-than-you-found-it/6090088dcebc886374b84f54/comment/6091e01e8c38d5300e68aa7e)

Nice tips! I'm used to applying them in my work, clearing old code, and making some features easier to understand. It feels good to see coworkers doing the same.

[Tomasz Gil](https://hashnode.com/@tomaszgil)

[May 5, 2021](https://hashnode.com/posts/leave-the-code-better-than-you-found-it/6090088dcebc886374b84f54/comment/6091e01e8c38d5300e68aa7e#reply-6092fc79d1bbc47b91a65b90)

Thanks! For sure, that's really motivating. 👍

[Rodrigo](https://hashnode.com/@rodrigomd)

[May 4, 2021](https://hashnode.com/posts/leave-the-code-better-than-you-found-it/6090088dcebc886374b84f54/comment/60917a738c38d5300e68a728)

Thanks for the great article, I like how you put the reader in perspective.

[Tomasz Gil](https://hashnode.com/@tomaszgil)

[May 4, 2021](https://hashnode.com/posts/leave-the-code-better-than-you-found-it/6090088dcebc886374b84f54/comment/60917a738c38d5300e68a728#reply-609196fc8c38d5300e68a86c)

Thanks for your comment!

[Tapas Adhikary](https://hashnode.com/@atapas)

[May 4, 2021](https://hashnode.com/posts/leave-the-code-better-than-you-found-it/6090088dcebc886374b84f54/comment/609148ca763ca93033366921)

Great article [Tomasz Gil](https://hashnode.com/@tomaszgil). I'm sure it will fly well as long as most team members are like-minded about it. Do you see it as a challenge in reality?

[Tomasz Gil](https://hashnode.com/@tomaszgil)

[May 4, 2021](https://hashnode.com/posts/leave-the-code-better-than-you-found-it/6090088dcebc886374b84f54/comment/609148ca763ca93033366921#reply-609196e3763ca93033366e52)

Thanks a lot! Yes, for sure it might be a challenge. Thankfully, currently I'm working with people that already share this mindset. But typically you would need to work towards this with other team members.
