About 395,000 results
Open links in new tab
  1. Concept of Comments in Computer Programming

    Aug 29, 2018 · Comments are text notes added to the program to provide explanatory information about the source code. They are used in a programming language to document the program and remind programmers of what tricky things they just did with the code and also helps the later generation for understanding and maintenance of code.

  2. Comment (computer programming) - Wikipedia

    In computer programming, a comment is text embedded in source code that a translator (compiler or interpreter) ignores. Generally, a comment is an annotation intended to make the code easier for a programmer to understand – often explaining an aspect that is not readily apparent in the program (non-comment) code. [1]

  3. Best practices for writing code comments - Stack Overflow

    Dec 23, 2021 · Rule 8: Add comments when fixing bugs. Rule 9: Use comments to mark incomplete implementations. The rest of this article explains each of these rules, providing examples and explaining how and when to apply them. Rule …

  4. Python Comments (With Examples) - Programiz

    Comments are hints that we add to our code to make it easier to understand. Python comments start with #. For example, Here, # print a number is a comment. Comments are completely ignored and not executed by code editors.

  5. C Comments (With Examples) - Programiz

    Comments are hints that a programmer can add to make their code readable. In this tutorial, you will learn about comments in C programming with the help of examples.

  6. Example of Adding Comments in 15 Programming Languages

    Jan 17, 2025 · We also cover two common types of comments and how to write them in 15 different programming languages. What are comments in programming? Comments in layman terms are pieces of text that will not be visible to end-users and are for the reference of people who are writing code.

  7. How to Write Better Comments in Code: A Complete Guide with Examples

    Oct 23, 2024 · In this detailed guide, we’ll explore how to write better comments in your code, focusing on best practices, common pitfalls, and practical examples to help you level up your commenting game....

  8. What Are Comments In Programming – Complete Guide

    Nov 19, 2023 · Comments in programming are annotations in the source code that are not executed by the compiler or interpreter. They are written and included by programmers to describe the functionality, purpose, or intricate logic of the code.

  9. How to Use Comments to Document and Clarify Your Code

    In this comprehensive guide, we’ll explore the art of using comments effectively to document and clarify your code, helping you become a more proficient programmer. 1. The Importance of Comments in Code. Before diving into the specifics of how to use comments, let’s first understand why they are so important:

  10. Mastering Comments in Programming: Types and Best Practices …

    Writing meaningful comments is a skill that can elevate your code quality and make collaboration smoother. Here are some key best practices for writing comments without going overboard. 1. Explain Why, Not What. Your code should already show what it does. Comments should focus on why certain decisions were made, especially if they’re not obvious.

  11. Some results have been removed
Refresh