About 10,800,000 results
Open links in new tab
  1. Best practices for writing code comments - Stack Overflow

    Dec 23, 2021 · Rule 5: Explain unidiomatic code in comments. Rule 6: Provide links to the original source of copied code. Rule 7: Include links to external references where they will be most helpful. Rule 8: Add comments when fixing bugs. Rule 9: Use comments to mark incomplete implementations.

  2. 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.

  3. Programming - Commenting - University of Utah

    How to comment Code: Primarily, a single "block" comment should be placed at the top of the function (or file) and describe the purpose the code and any algorithms used to accomplish the goal. In-line comments should be used sparingly, only where the code is not "self-documenting".

  4. Coding and Comment Style : Broad Institute of MIT and Harvard

    Four principal mechanisms govern clear code communication: naming, structure, context, and comments. Below, we recommend practices and show examples for each. 1. Naming. Call things what they are. Keep names straightforward and descriptive. Be concise, but avoid abbreviations unless they are self-explanatory. Variables/classes are nouns.

  5. The Art of Effective Code Commenting: A Comprehensive Guide

    Comments are essential for making your code more readable, maintainable, and understandable, not just for others but also for your future self. In this comprehensive guide, we’ll explore the art of effective code commenting, providing you with valuable tips and best practices to elevate your coding skills. Why Are Code Comments Important?

  6. The Art of Code Comments: Writing Clean and Effective …

    Aug 31, 2023 · In this article, we're delving into the world of code comments – those lines of text that don't affect how your program runs, but play a crucial role in understanding, maintaining, and collaborating on your codebase.

  7. How to Explain Your Algorithm Design with Comments and

    Comments and annotations are two ways to add explanatory text to your code and diagrams that can help you document and explain your algorithm design. In this article, you will learn how to use...

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

    Comments are non-executable lines of text within your code that provide explanations, documentation, and clarity for both you and other developers who may work on the project in the future.

  9. How to Write Meaningful Code Comments - HackerNoon

    Jun 5, 2021 · In this guide, you will learn why it is important to write code comments, what are different code comment types, and the 4 best practices.

  10. A Subtle Art Of Writing Good Code Comments | Igor Fil - DEV …

    Nov 26, 2019 · There are multiple opinions on code comments. But let’s ask ourselves the most important question. Why do we write code comments? What is their function, why they exist? My own answer is that comments exist to express ideas that we cannot express with code. It is easy to express alorithms in code, states, sequences.

  11. Some results have been removed
Refresh