---
title: "Discussion on \"5 Things You Can Do To Write Better Code\" | Hashnode"
description: "Discussion on \"5 Things You Can Do To Write Better Code\". Developers all over the world can agree on this. There is a lot of poorly written code out there in every shape and form possible. We're being faced with the problem of people getting pushed to produce work too fast and it's dropping the quality of o..."
url: "https://hashnode.com/posts/5-things-you-can-do-to-write-better-code/5c2b6d7e5ae10c102e5eb974"
---

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

Discussion

# [5 Things You Can Do To Write Better Code](https://hashnode.com/post/5-things-you-can-do-to-write-better-code?utm_source=hashnode&utm_medium=feed)

Developers all over the world can agree on this. There is a lot of poorly written code out there in every shape and form possible. We're being faced with the problem of people getting pushed to produce work too fast and it's dropping the quality of o...

Jan 1, 2019 · hashnode.com  
Read the article

-   [#programming](https://hashnode.com/tag/programming)
-   [#general-advice](https://hashnode.com/tag/general-advice)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#beginners](https://hashnode.com/tag/beginners)

## Written by

[Milecia](https://hashnode.com/@flippedcoding)

@flippedcoding

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

Mentors new developers | Teaches people un-fluffy code | Tech conference speaker | Super Software Engineering Nerd

Milecia is a senior software engineer, but she also has a master&#39;s degree in mechanical and aerospace engineering and has published research in machine learning and robotics. She started Flipped Coding in 2017 to help people learn web development with real-world projects and it&#39;s being growing ever since. In her free time, she spends time with her husband and dogs while learning to play the ukulele and learning Japanese.

## Responses 1

Markdown supported · ⌘↵ to post

[Oliver Jones](https://hashnode.com/@OllieJones)

[Jan 4, 2019](https://hashnode.com/posts/5-things-you-can-do-to-write-better-code/5c2b6d7e5ae10c102e5eb974/comment/5c2f4686463d8b727eb64f78)

Nice stuff.

I have a suggestion: let's move away from the age-old myth that devs hate to write documentation. Like most myths it contains a kernel of truth, but that doesn't matter.

Instead, let's look at the things we DO generate, and figure out how to make them also explain our work to the user or the next dev.

-   Plans are documentation. Write 'em in the present tense. Write 'em as if for the next dev, not the product manager. "This module zumbinates non-recursive framisses, accepting immutable input and generating immutable output." etc.
-   Unit tests are, basically, documentation with examples. They happen to be runnable. A couple of extra comments, and there's usable docs.

I wonder what would happen if we start saying "Devs really love to help users and other devs. That's why we do this work. It's easy to explain what we do. It's called documentation."
