<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-comment-your-code-like-a-boss-e0tcatxlww" -->

---
title: How to Comment Your Code Like a Boss | daily.dev
description: Comments in your code are much the same. Good, clear, and necessary comments can help keep an otherwise convoluted narrative of code become a clear,...
canonical: https://daily.dev/posts/how-to-comment-your-code-like-a-boss-e0tcatxlww
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to Comment Your Code Like a Boss | daily.dev
og:description: Comments in your code are much the same. Good, clear, and necessary comments can help keep an otherwise convoluted narrative of code become a clear,...
og:url: https://daily.dev/posts/how-to-comment-your-code-like-a-boss-e0tcatxlww
og:image: https://api.daily.dev/og/posts/e0tcatxLWw.png
og:image:alt: How to Comment Your Code Like a Boss
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to Comment Your Code Like a Boss

**[Hashnode](https://daily.dev/sources/hashnode)** · 3 min read · 53 upvotes · 9 comments

## Summary

Comments in your code are much the same. Good, clear, and necessary comments can help keep an otherwise convoluted narrative of code become a clear, easy-to-follow story. Two main ideas that have helped me when deciding if a section of code needs comments are these: Code should explain what is happening, and clear naming will help make your code be clear and easy to follow.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://arter.dev/how-to-comment-your-code-like-a-boss>

## Community discussion

Top comments from developers on daily.dev.

**@jasonwinman** · 2 upvotes

> I would also encourage the use of JSDoc or other standardized way of commenting functions as it allows for IDE integration, which is very helpful for other people working with your code.

**@jaloplo** · 1 upvotes

> Like it so much this article, concise and to the point.

**@jaakit** · 1 upvotes

> # This is a good comment!

**@hunterp** · 1 upvotes

> /* "Lorem ipsum dolor sit amet, consectetur adipiscing var elit = ",sed" do eiusmod tempor// incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, *quis //*nostrud exercitation ullamco laboris var nisi = "ut" *aliquip ex ea commodo consequat. Duis aute irure dolor in reprehen*derit in voluptate velit esse cillum dolore eu fugiat*/ var nulla ="im a bad bad boy" /* pariatur. Excepteur sint occaecat cupidatat non *proident, sunt //in culpa qui officia deserunt mollit anim id est laborum." */

**@rakia** · 1 upvotes

> Code comment is considered a code smell. I wonder how to comment as a Boss.

## Similar posts on daily.dev

- [Don’t just attend KubeCon \+ CloudNativeCon, Merge Forward your experience\!](https://daily.dev/posts/don-t-just-attend-kubecon-cloudnativecon-merge-forward-your-experience--l0rpp73x8) · CNCF · 1 upvotes · 0 comments
- [Announcing H2 2026 KCDs](https://daily.dev/posts/announcing-h2-2026-kcds-m96goajm1) · CNCF · 1 upvotes · 0 comments
- [Two months of Open Community Groups](https://daily.dev/posts/two-months-of-open-community-groups-asf52zhbs) · CNCF · 0 upvotes · 0 comments
- [CNCF Unveils Schedule for KubeCon \+ CloudNativeCon Europe 2026](https://daily.dev/posts/cncf-unveils-schedule-for-kubecon-cloudnativecon-europe-2026-ikhcoa5cb) · CNCF · 2 upvotes · 0 comments
- [CNCF Debuts KubeCon \+ CloudNativeCon Japan 2026 Schedule](https://daily.dev/posts/cncf-debuts-kubecon-cloudnativecon-japan-2026-schedule-xp5pyudub) · CNCF · 1 upvotes · 0 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming)

[View this post on daily.dev](https://daily.dev/posts/how-to-comment-your-code-like-a-boss-e0tcatxlww)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to Comment Your Code Like a Boss","url":"https://daily.dev/posts/how-to-comment-your-code-like-a-boss-e0tcatxlww","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-comment-your-code-like-a-boss-e0tcatxlww"},"datePublished":"2020-12-01T07:35:44.286Z","dateModified":"2021-10-07T14:17:10.317Z","description":"Comments in your code are much the same. Good, clear, and necessary comments can help keep an otherwise convoluted narrative of code become a clear,...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8dd272578e34ec574b6a1ec6113aed47","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8dd272578e34ec574b6a1ec6113aed47","isAccessibleForFree":true,"articleSection":"Hashnode","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Hashnode","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/4a287b2e7cb5499bae863f8e7137cdb4","url":"https://daily.dev/sources/hashnode"},"commentCount":9,"discussionUrl":"https://daily.dev/posts/how-to-comment-your-code-like-a-boss-e0tcatxlww","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":53},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":9}],"keywords":"general-programming","timeRequired":"PT3M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Hashnode","item":"https://daily.dev/sources/hashnode"},{"@type":"ListItem","position":3,"name":"How to Comment Your Code Like a Boss"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/how-to-comment-your-code-like-a-boss-e0tcatxlww","comment":[{"@type":"Comment","text":"I would also encourage the use of JSDoc or other standardized way of commenting functions as it allows for IDE integration, which is very helpful for other people working with your code.","datePublished":"2020-12-01T16:05:35.091Z","url":"https://daily.dev/posts/e0tcatxLWw#c-DS58QEOMT","author":{"@type":"Person","name":"Jason Winman","url":"https://daily.dev/jasonwinman","image":"https://lh3.googleusercontent.com/a-/AOh14GhysrbMafnmvydhGnsTeDtpDtx-Rjlvxk85bHtqtw=s100"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2}},{"@type":"Comment","text":"Like it so much this article, concise and to the point.","datePublished":"2020-12-01T10:19:53.153Z","url":"https://daily.dev/posts/e0tcatxLWw#c-Pi62WFfJq","author":{"@type":"Person","name":"Jaime López","url":"https://daily.dev/jaloplo","image":"https://avatars3.githubusercontent.com/u/559176?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"This is a good comment!","datePublished":"2020-12-01T09:42:50.079Z","url":"https://daily.dev/posts/e0tcatxLWw#c-aZuRB_M7S","author":{"@type":"Person","name":"Jaaki","url":"https://daily.dev/jaakit","image":"https://avatars2.githubusercontent.com/u/25294710?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"/* “Lorem ipsum dolor sit amet, consectetur adipiscing var elit = “,sed” do eiusmod tempor// incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis //nostrud exercitation ullamco laboris var nisi = “ut” aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat/ var nulla =“im a bad bad boy” / pariatur. Excepteur sint occaecat cupidatat non *proident, sunt //in culpa qui officia deserunt mollit anim id est laborum.” */","datePublished":"2020-12-01T17:29:48.700Z","url":"https://daily.dev/posts/e0tcatxLWw#c-DcYl3Mpim","author":{"@type":"Person","name":"Hunter Peress","url":"https://daily.dev/hunterp","image":"https://avatars0.githubusercontent.com/u/772917?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}},{"@type":"Comment","text":"Code comment is considered a code smell. I wonder how to comment as a Boss.","datePublished":"2020-12-02T11:56:25.606Z","url":"https://daily.dev/posts/e0tcatxLWw#c-8Z_-KsNwL","author":{"@type":"Person","name":"Rakia Ben Sassi","url":"https://daily.dev/rakia","image":"https://avatars1.githubusercontent.com/u/1866918?v=4"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
```

