Tagged articles
34 articles
Page 1 of 1
ITPUB
ITPUB
Jun 29, 2025 · Fundamentals

Can Deleting Code Comments Land You in Court? Legal Risks Explained

The article examines the criminal and civil legal boundaries of deleting code comments in the IT industry, outlines the criteria for severe consequences, analyzes the technical difficulty and cost of such actions, and shares expert and community perspectives on why this practice is largely harmless yet potentially liable.

civil liabilitycode commentscriminal law
0 likes · 6 min read
Can Deleting Code Comments Land You in Court? Legal Risks Explained
Liangxu Linux
Liangxu Linux
Apr 14, 2025 · Fundamentals

Essential C Coding Style Guide: Naming, Headers, and Comments

This guide outlines practical C coding standards covering clear and concise code, consistent naming conventions for variables, functions, constants, enums, macros, and files, proper header protection, include ordering, inline function usage, and effective commenting to improve readability and maintainability.

C Programmingcode commentscoding standards
0 likes · 13 min read
Essential C Coding Style Guide: Naming, Headers, and Comments
Liangxu Linux
Liangxu Linux
Jan 25, 2025 · Fundamentals

Why Every Good Code Needs Thoughtful Comments: 9 Proven Types

The article explains why comprehensive code comments are essential, outlines nine distinct comment types advocated by Redis creator antirez, and shows how each improves readability, maintenance, and collaboration in software projects.

Documentationbest practicescode comments
0 likes · 7 min read
Why Every Good Code Needs Thoughtful Comments: 9 Proven Types
Java Tech Enthusiast
Java Tech Enthusiast
Nov 17, 2024 · Fundamentals

Types and Best Practices of Code Comments

Effective code comments fall into nine categories—six recommended types such as function, design, why, teacher, checklist, and guide comments, and three to avoid (trivial, debt, backup)—and using the right kind improves readability, maintenance, and AI‑assisted understanding of software projects.

Documentationcode commentscoding standards
0 likes · 7 min read
Types and Best Practices of Code Comments
Continuous Delivery 2.0
Continuous Delivery 2.0
Sep 29, 2024 · Artificial Intelligence

Four Practical Tips for Using Cursor AI Effectively

This article presents four actionable techniques—clearly stating requirements, requesting code comments, invoking the Composer with Command/Ctrl + I, and configuring AI rules in Settings—to help developers maximize productivity when working with the Cursor AI coding assistant.

AI CodingCursorcode comments
0 likes · 4 min read
Four Practical Tips for Using Cursor AI Effectively
Liangxu Linux
Liangxu Linux
Sep 17, 2024 · Fundamentals

How to Quickly Remove Code Comments in Embedded Projects

This guide explains practical methods—including specialized tools, custom scripts, and regular‑expression tricks in editors like VS Code and Notepad++—to efficiently strip //, /* */ and blank‑line comments from C/C++ source files for software copyright submissions.

Notepad++Python scriptVS Code
0 likes · 4 min read
How to Quickly Remove Code Comments in Embedded Projects
Go Programming World
Go Programming World
Jul 21, 2024 · Fundamentals

Chinese Copywriting Guidelines: Formatting Rules for Code Comments, README, and Documentation

This article introduces the Chinese copywriting guidelines, explaining why spaces between Chinese and English, numbers, units, and punctuation matter, providing concrete examples and best‑practice rules, and showcasing the autocorrect CLI tool and language libraries that can automatically enforce these formatting standards.

CLI toolChinese copywritingDocumentation
0 likes · 16 min read
Chinese Copywriting Guidelines: Formatting Rules for Code Comments, README, and Documentation
Ant R&D Efficiency
Ant R&D Efficiency
Jul 17, 2023 · Fundamentals

Best Practices for Writing Java Comments

Effective Java commenting follows a clear hierarchy—using single‑line, block, and Javadoc styles—while aligning comments with code, inserting blank lines, and limiting redundancy, so that each comment explains intent, summarizes complex sections, documents parameters, and aids maintainability without overwhelming the source.

Documentationbest practicescode comments
0 likes · 15 min read
Best Practices for Writing Java Comments
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 29, 2023 · Fundamentals

Can You Write Clean Code Without Comments? Strategies to Eliminate Bad Annotations

This article explores why programmers dislike both reading uncommented code and writing comments, outlines the drawbacks of excessive annotations, categorizes common bad comment patterns, and offers practical techniques—such as self‑descriptive naming, refactoring, and using built‑in validation methods—to produce clear, maintainable code without relying on comments.

clean codecode commentsrefactoring
0 likes · 7 min read
Can You Write Clean Code Without Comments? Strategies to Eliminate Bad Annotations
21CTO
21CTO
Dec 1, 2022 · Frontend Development

Say Goodbye to Bad JavaScript Practices: 8 Essential Tips for Clean Code

This article outlines eight practical JavaScript habits—using let/const, writing meaningful comments, preferring == over ===, leveraging optional chaining, avoiding magic values, handling async errors, passing multiple parameters instead of a single object, and using concise conditionals—to produce more maintainable, readable, and robust code.

Error HandlingJavaScriptclean code
0 likes · 7 min read
Say Goodbye to Bad JavaScript Practices: 8 Essential Tips for Clean Code
MaGe Linux Operations
MaGe Linux Operations
Oct 31, 2022 · Fundamentals

Why Good Code Comments Matter: Debunking the No‑Comment Myth

The article argues that code comments are essential, explaining why ignoring them leads to unreadable, error‑prone software, and demonstrates that even brief annotations can save hours of debugging, especially after months of neglect or when others inherit the code.

Documentationbest practicescode comments
0 likes · 11 min read
Why Good Code Comments Matter: Debunking the No‑Comment Myth
21CTO
21CTO
Sep 1, 2022 · Fundamentals

Why Developers Write Weird Code Comments (And What They Reveal)

This article explores the cultural, historical, and practical reasons behind developers' quirky code comments, presents amusing examples from various languages, shares statistics on comment density, and reflects on how these annotations affect teamwork, code readability, and developer morale.

best practicescode commentshumor
0 likes · 15 min read
Why Developers Write Weird Code Comments (And What They Reveal)
KooFE Frontend Team
KooFE Frontend Team
May 6, 2021 · Fundamentals

When Are Code Comments Helpful? Best Practices for Clean JavaScript

This article examines the ongoing debate over code comments, explains when comments add value or cause noise, and outlines three practical guidelines—commenting only complex business logic, avoiding log‑type and positional markers—to improve JavaScript code readability.

JavaScriptbest practicesclean code
0 likes · 7 min read
When Are Code Comments Helpful? Best Practices for Clean JavaScript
ITPUB
ITPUB
Mar 24, 2021 · Fundamentals

Why Good Code Comments Are Essential for Every Developer

The article emphasizes that clear, well‑structured comments are vital for code readability, team collaboration, maintenance, and knowledge transfer, illustrating common pitfalls through developer anecdotes and offering practical guidelines such as writing concise explanations, categorizing notes, timing comments, and preserving code history to avoid future confusion.

Collaborationcode commentsmaintainability
0 likes · 10 min read
Why Good Code Comments Are Essential for Every Developer
Laravel Tech Community
Laravel Tech Community
Feb 21, 2021 · Fundamentals

C/C++ Commenting Guidelines and Best Practices

This article explains the importance of comments in C/C++ code and provides detailed guidelines for file, function, variable, spelling, and TODO annotations, including examples and best‑practice recommendations to improve code readability and maintainability.

c++code commentssoftware-engineering
0 likes · 6 min read
C/C++ Commenting Guidelines and Best Practices
Liangxu Linux
Liangxu Linux
Feb 1, 2021 · Fundamentals

Mastering C/C++ Comment Standards: A Practical Guide

This guide explains why comments are essential for code readability, outlines various comment styles for C/C++—including file, function, variable, spelling, and TODO comments—and provides concrete examples and best‑practice recommendations to help developers write clear, maintainable code.

C++Documentationbest practices
0 likes · 6 min read
Mastering C/C++ Comment Standards: A Practical Guide
政采云技术
政采云技术
Sep 27, 2020 · Frontend Development

Writing High‑Quality Maintainable Code: A Guide to Clear Annotations

This article explains why comments are essential for code readability and maintenance, describes the syntax of comments in HTML, CSS, JavaScript and other languages, shows practical shortcuts, special tags, real‑world examples, and recommends VS Code extensions for writing consistent, useful annotations.

CSSHTMLVS Code extensions
0 likes · 16 min read
Writing High‑Quality Maintainable Code: A Guide to Clear Annotations
21CTO
21CTO
Sep 22, 2019 · Fundamentals

Why Reducing Complexity Is the Key to Better Software Design

This article distills the core principles from John Ousterhout's *A Philosophy of Software Design*—defining software complexity, presenting a quantitative model, and offering practical strategies such as layering, modularization, information hiding, and effective commenting—to help engineers build maintainable, low‑complexity systems.

code commentscomplexity reductionmodular architecture
0 likes · 20 min read
Why Reducing Complexity Is the Key to Better Software Design
vivo Internet Technology
vivo Internet Technology
Aug 21, 2019 · Frontend Development

Best Practices for Writing High‑Quality JavaScript Functions: Naming, Comments, and Robustness

The article advises front‑end developers to improve JavaScript function quality by adopting clear, English‑style names, using consistent prefixes for visibility, writing informative comments such as JSDoc, and applying defensive programming techniques—including default parameters, try/catch, and granular promise error handling—to create maintainable, robust code.

Robustnesscode commentsfrontend
0 likes · 17 min read
Best Practices for Writing High‑Quality JavaScript Functions: Naming, Comments, and Robustness
21CTO
21CTO
Apr 10, 2017 · Fundamentals

When Are Code Comments Truly Necessary? A Deep Dive into Clean Code Practices

This article examines the role of comments in source code, argues that well‑written, transparent code can often eliminate the need for comments, outlines four levels of code quality, provides concrete refactoring examples, and shares practical clean‑code guidelines such as avoiding magic numbers, reducing parameters, and using contract‑style preconditions.

best practicesclean codecode comments
0 likes · 9 min read
When Are Code Comments Truly Necessary? A Deep Dive into Clean Code Practices
360 Quality & Efficiency
360 Quality & Efficiency
Sep 20, 2016 · Fundamentals

Should You Add Comments to Your Code? – Insights from Refactoring

This discussion post examines whether code should be commented, citing the book *Refactoring* and emphasizing that needing comments often signals the need for refactoring, while good variable names can serve as implicit documentation, and stresses the importance of clear interface comments.

best practicescode commentscoding standards
0 likes · 2 min read
Should You Add Comments to Your Code? – Insights from Refactoring
Architecture Digest
Architecture Digest
Jul 25, 2016 · Fundamentals

Why Comments Can Be Harmful and How to Adopt a Zero‑Comment Policy

The article argues that comments often degrade code readability, identifies two common comment‑related problems—poor naming and overly long methods—and proposes a zero‑comment approach that relies on accurate naming, short methods, and self‑describing code, illustrated with C# examples.

clean codecode commentscoding standards
0 likes · 7 min read
Why Comments Can Be Harmful and How to Adopt a Zero‑Comment Policy
Qunar Tech Salon
Qunar Tech Salon
Feb 28, 2016 · Fundamentals

My Commentary on Code Comments

Through a collection of humorous and often pointless code comment examples, the article examines how developers use annotations—ranging from cryptic references to overly detailed narratives—to convey (or obscure) intent, highlighting best practices and pitfalls in writing effective code comments.

best practicescode commentshumor
0 likes · 8 min read
My Commentary on Code Comments
21CTO
21CTO
Aug 24, 2015 · Fundamentals

5 Toxic Code Comment Types Every Developer Should Eliminate

This article explains five common types of programming comments that hinder readability—such as self‑promoting tags, outdated code blocks, redundant explanations, irrelevant stories, and lingering TODOs—and offers practical advice on how to avoid them.

best practicescode commentscode readability
0 likes · 7 min read
5 Toxic Code Comment Types Every Developer Should Eliminate
Baidu Tech Salon
Baidu Tech Salon
Nov 12, 2014 · Fundamentals

Top 10 Funniest Code Comments from StackOverflow

The article showcases the top ten most memorable and humorous code comments harvested from a StackOverflow discussion, ranging from sarcastic warnings and epic motivational messages to absurd exception handling and playful macros, illustrating how developers inject personality into code while inviting readers to share even funnier examples.

StackOverflowbest practicescode comments
0 likes · 3 min read
Top 10 Funniest Code Comments from StackOverflow