---
title: "Discussion on \"How to write good comments in the code?\" | Hashnode"
description: "Discussion on \"How to write good comments in the code?\". While naming variables, functions and classes is one of the hardest things to do as a programmer, writing comments is also hard. It’s easier to express our logic in code vs English. Let’s look at the best ways to write comments in code.\nYAGNI — You a..."
url: "https://hashnode.com/posts/how-to-write-good-comments-in-the-code/639579a9e149b4559efe55ca"
---

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

Discussion

# [How to write good comments in the code?](https://harshmaur.com/how-to-write-good-comments-in-the-code?utm_source=hashnode&utm_medium=feed)

While naming variables, functions and classes is one of the hardest things to do as a programmer, writing comments is also hard. It’s easier to express our logic in code vs English. Let’s look at the best ways to write comments in code. YAGNI — You a...

Nov 19, 2022 · 5 min read · harshmaur.com  
Read the article

-   [#development](https://hashnode.com/tag/development)
-   [#comments](https://hashnode.com/tag/comments)

## Written by

[Harsh Maur](https://hashnode.com/@harshmaur)

@harshmaur

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

Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
