# code comments

Published articles for code comments.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Btrfs Seeks To Deal With AI & "Newbies Without Common Senses" Doing More Harm Than Good

DevFeed: [Btrfs Seeks To Deal With AI & "Newbies Without Common Senses" Doing More Harm Than Good](<https://devfeed.tech/articles/btrfs-seeks-to-deal-with-ai-newbies-without-common-senses-doing-more-harm-than-good-137760.md>)

Original publisher: [Read original article](<https://www.phoronix.com/news/Btrfs-LLM-Newbies-Guidelines>)

Author: Michael Larabel

Published: 2026-11-17T12:55:56Z

Content type: news

Language: en

Sources: [Phoronix](<https://devfeed.tech/sources/phoronix.md>)

Topics: [btrfs](<https://devfeed.tech/topics/btrfs.md>), [Local AI](<https://devfeed.tech/topics/local-ai.md>), [bestpractice](<https://devfeed.tech/topics/bestpractice.md>), [Operating system](<https://devfeed.tech/topics/operating-system.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-generated-code](<https://devfeed.tech/tags/ai-generated-code.md>), [ai-llms](<https://devfeed.tech/tags/ai-llms.md>), [btrfs](<https://devfeed.tech/tags/btrfs.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [desktop-linux](<https://devfeed.tech/tags/desktop-linux.md>), [developers](<https://devfeed.tech/tags/developers.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [file-system](<https://devfeed.tech/tags/file-system.md>), [guidelines](<https://devfeed.tech/tags/guidelines.md>), [human-review](<https://devfeed.tech/tags/human-review.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-benchmarking](<https://devfeed.tech/tags/linux-benchmarking.md>), [linux-hardware-benchmarks](<https://devfeed.tech/tags/linux-hardware-benchmarks.md>), [linux-hardware-reviews](<https://devfeed.tech/tags/linux-hardware-reviews.md>), [linux-how-to](<https://devfeed.tech/tags/linux-how-to.md>), [linux-performance](<https://devfeed.tech/tags/linux-performance.md>), [linux-server-benchmarks](<https://devfeed.tech/tags/linux-server-benchmarks.md>), [open-source-graphics](<https://devfeed.tech/tags/open-source-graphics.md>), [patch](<https://devfeed.tech/tags/patch.md>), [phoronix](<https://devfeed.tech/tags/phoronix.md>), [phoronix-test-suite](<https://devfeed.tech/tags/phoronix-test-suite.md>), [review](<https://devfeed.tech/tags/review.md>), [testing](<https://devfeed.tech/tags/testing.md>), [ubuntu-benchmarks](<https://devfeed.tech/tags/ubuntu-benchmarks.md>), [ubuntu-hardware](<https://devfeed.tech/tags/ubuntu-hardware.md>)

### AI overview

Btrfs developer Qu Wenruo proposed adding an AGENTS Markdown file for Linux's fs/btrfs directory, now under review on the kernel mailing list. The guidance is aimed at newcomers and AI/LLM agents, with rules for concise code comments and patch messages, plus expectations for cover letters, visual aids and charts, patch versioning, and testing. Qu says the proposal responds to low-value fixes and verbose, unhelpful submissions that consume review time. The excerpt describes a proposal, not an adopted policy.

### Source excerpt

The Btrfs file-system could soon see new patch guidelines in Linux Git as the developers try to deal with the fallout from AI/LLMs and "newbies without common senses are doing more harm than help."..

## CC4Q Workbench: From Quantum Repositories to Analyzable Code Comments

DevFeed: [CC4Q Workbench: From Quantum Repositories to Analyzable Code Comments](<https://devfeed.tech/articles/cc4q-workbench-from-quantum-repositories-to-analyzable-code-comments-100378.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.32651>)

Author: Zenghui Zhou, Yuechen Li, Zheng Zheng

Published: 2026-10-26T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [code comments](<https://devfeed.tech/topics/code-comments.md>), [Fine-tuning](<https://devfeed.tech/topics/fine-tuning.md>)

Tags: [classification](<https://devfeed.tech/tags/classification.md>), [classifiers](<https://devfeed.tech/tags/classifiers.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [datasets](<https://devfeed.tech/tags/datasets.md>), [fine-tuning](<https://devfeed.tech/tags/fine-tuning.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [inspection](<https://devfeed.tech/tags/inspection.md>), [integration](<https://devfeed.tech/tags/integration.md>), [interface](<https://devfeed.tech/tags/interface.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [properties](<https://devfeed.tech/tags/properties.md>), [python](<https://devfeed.tech/tags/python.md>), [qiskit](<https://devfeed.tech/tags/qiskit.md>), [quantum](<https://devfeed.tech/tags/quantum.md>), [quantum-software](<https://devfeed.tech/tags/quantum-software.md>), [repositories](<https://devfeed.tech/tags/repositories.md>), [web-interface](<https://devfeed.tech/tags/web-interface.md>), [workflow](<https://devfeed.tech/tags/workflow.md>)

### AI overview

CC4Q Workbench packages quantum-comment analysis into a reusable workflow for Python repositories at a specified revision. It extracts code-comment pairs, splits comments into sentence-level units, and uses two trained classifiers to detect quantum-specific content and assign knowledge categories. Its web interface supports browsing bundled datasets and code snippets, building corpora from new repositories, manual binary annotation with predictions hidden, and fine-tuning classifiers from exported annotations. Six SDK datasets contain 39,593 sentence-level code comment units, with 17,517 browsable in the interface. On three additional application-layer Qiskit repositories, the pipeline ran without code changes and produced 11,517 units. Human annotations agreed with the binary classifier on 85.0% of a manually verified sample of 379 units.

### Source excerpt

arXiv:2610.32651v1 Announce Type: new Abstract: Quantum software development kits (SDKs) expose high-level APIs whose use requires an understanding of underlying mathematical principles, circuit semantics, and hardware properties. Code comments can provide natural-language or structural explanations that are not explicit in API calls. However, studying comments in a new quantum SDK still requires researchers to coordinate separate steps for comment extraction, quantum-specific classification, and manual verification, resulting in repeated integration effort. To address this problem, we present CC4Q Workbench, an open-source workbench that integrates these steps into a reusable workflow. Given a Python repository at a specified revision, CC4Q Workbench automatically extracts code-comment pairs, segments comments into sentence-level units, and applies two trained classifiers to identify quantum-specific content and assign quantum-knowledge categories. Its web interface supports exploration of bundled datasets, inspection of code snippets, corpus construction from new repositories, manual annotation with model predictions hidden during binary labeling, and classifier fine-tuning using exported annotations. The release provides aggregate statistics for six SDK datasets comprising 39,593 sentence-level code comment units (SCCUs), of which 17,517 are browsable in the web interface. Applied to three additional application-layer Qiskit repositories outside the original CC4Q dataset, the pipeline ran without code changes and produced 11,517 SCCUs. Manual verification of 379 SCCUs showed 85.0% agreement between human annotations and the binary classifier's predictions.

## Mesa Loosens Rules Around AI Agents For Code Comments / Commit Messages

DevFeed: [Mesa Loosens Rules Around AI Agents For Code Comments / Commit Messages](<https://devfeed.tech/articles/mesa-loosens-rules-around-ai-agents-for-code-comments-commit-messages-95383.md>)

Original publisher: [Read original article](<https://www.phoronix.com/news/Mesa-Loosens-AGENTS-MD>)

Author: Michael Larabel

Published: 2026-10-22T12:03:30Z

Content type: news

Language: en

Sources: [Phoronix](<https://devfeed.tech/sources/phoronix.md>)

Topics: [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-agents](<https://devfeed.tech/tags/ai-agents.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [commit](<https://devfeed.tech/tags/commit.md>), [desktop-linux](<https://devfeed.tech/tags/desktop-linux.md>), [linux-benchmarking](<https://devfeed.tech/tags/linux-benchmarking.md>), [linux-hardware-benchmarks](<https://devfeed.tech/tags/linux-hardware-benchmarks.md>), [linux-hardware-reviews](<https://devfeed.tech/tags/linux-hardware-reviews.md>), [linux-how-to](<https://devfeed.tech/tags/linux-how-to.md>), [linux-performance](<https://devfeed.tech/tags/linux-performance.md>), [linux-server-benchmarks](<https://devfeed.tech/tags/linux-server-benchmarks.md>), [messages](<https://devfeed.tech/tags/messages.md>), [open-source-graphics](<https://devfeed.tech/tags/open-source-graphics.md>), [phoronix](<https://devfeed.tech/tags/phoronix.md>), [phoronix-test-suite](<https://devfeed.tech/tags/phoronix-test-suite.md>), [rules](<https://devfeed.tech/tags/rules.md>), [ubuntu-benchmarks](<https://devfeed.tech/tags/ubuntu-benchmarks.md>), [ubuntu-hardware](<https://devfeed.tech/tags/ubuntu-hardware.md>)

### AI overview

Mesa revised its AGENTS.md to allow AI tools to draft code comments and commit or patch messages, provided a human reviews and edits the final material before submission. Alyssa Rosenzweig said the earlier wording had blocked private drafting workflows, although it was meant to reflect the project's existing policy rather than expand it. The change does not alter Mesa's policy compromise on AI use; it removes wording that had enforced it too broadly and caused workflow problems. Rosenzweig said the project should avoid reopening the policy debate for now.

### Source excerpt

The Mesa 3D graphics driver project has loosened its rules laid out in their AGENTS.md for AI agents to permit AI/LLM assistance in generating code comments and commit/patch messages, as long as a human is ultimately reviewing/editing it in the end...

## The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languages

DevFeed: [The Best Programming Language for Tokenmaxxing: An Investigation of Coding Agent Behavior Across Programming Languages](<https://devfeed.tech/articles/the-best-programming-language-for-tokenmaxxing-an-investigation-of-coding-agent-behavior-across-programming-languages-94602.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.22807>)

Author: Zixuan Wu, Carolyn Jane Anderson, Arjun Guha

Published: 2026-10-22T04:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [agentic-coding](<https://devfeed.tech/topics/agentic-coding.md>), [Programming Languages / Compilers](<https://devfeed.tech/topics/programming-languages-compilers.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [agents](<https://devfeed.tech/tags/agents.md>), [behavior](<https://devfeed.tech/tags/behavior.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [cost](<https://devfeed.tech/tags/cost.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [efficiency](<https://devfeed.tech/tags/efficiency.md>), [investigation](<https://devfeed.tech/tags/investigation.md>), [java](<https://devfeed.tech/tags/java.md>), [language](<https://devfeed.tech/tags/language.md>), [languages](<https://devfeed.tech/tags/languages.md>), [metric](<https://devfeed.tech/tags/metric.md>), [models](<https://devfeed.tech/tags/models.md>), [programming](<https://devfeed.tech/tags/programming.md>), [programming-language](<https://devfeed.tech/tags/programming-language.md>), [programming-languages](<https://devfeed.tech/tags/programming-languages.md>)

### AI overview

Across five recent models, token use on programming problems varied substantially by language among Python, Java, Rust, and OCaml, even after controlling for problem difficulty; the variation was consistent across models. To investigate, the researchers re-executed intermediate solutions and analyzed test outcomes and trajectory text. They report repeated noncompiling attempts in unfamiliar languages, revisions to solutions that already passed, planning in code comments, invented inputs that displaced provided tests, and Python prototyping as a way to sidestep unfamiliar target languages. The authors argue that language-specific token efficiency matters when benchmarking and developing multilingual coding agents.

### Source excerpt

arXiv:2607.22807v2 Announce Type: replace Abstract: Although coding agents are now very effective in a variety of programming languages, this paper first shows that the cost (in tokens) can very significantly by programming language. We evaluate five recent models on programming problems in Python, Java, Rust, and OCaml. We carefully control for problem difficulty, and show that there can be stark variation in token consumption that is consistent across models. To understand why, we analyze both the structure and content of agent trajectories. First, we re-execute every intermediate solution and abstract each trajectory as a sequence of test-outcome vectors, then label the work between successive solutions. This reveals agents repeatedly producing noncompiling solutions in unfamiliar languages and revising solutions that already pass. Second, we analyze trajectory text, finding that agents plan solutions in code comments, distrust the provided tests in favor of inputs they invent, and sidestep unfamiliar target languages by prototyping in Python. Our results show that by-language token efficiency is a metric that should be considered when benchmarking and developing multilingual agents, and, for the tokenmaxxer, a guide to the most expensive language to work in.

## Using a Python CI check to keep AI-written prose consistent with a preferred style

DevFeed: [Using a Python CI check to keep AI-written prose consistent with a preferred style](<https://devfeed.tech/articles/hiding-my-ai-slop-from-my-nix-friends-61476.md>)

Original publisher: [Read original article](<https://fzakaria.com/2026/09/28/hiding-my-ai-slop-from-my-nix-friends>)

Published: 2026-09-28T20:21:00Z

Content type: article

Language: en

Sources: [Farid Zakaria's Blog](<https://devfeed.tech/sources/farid-zakaria-s-blog.md>)

Topics: [AI-assisted coding](<https://devfeed.tech/topics/ai-assisted-coding.md>), [Nix](<https://devfeed.tech/topics/nix.md>), [CI/CD](<https://devfeed.tech/topics/cicd.md>), [Python](<https://devfeed.tech/topics/python.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [build](<https://devfeed.tech/tags/build.md>), [ci](<https://devfeed.tech/tags/ci.md>), [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [codex](<https://devfeed.tech/tags/codex.md>), [nix](<https://devfeed.tech/tags/nix.md>), [prompting](<https://devfeed.tech/tags/prompting.md>), [python](<https://devfeed.tech/tags/python.md>), [source](<https://devfeed.tech/tags/source.md>)

### AI overview

The author describes using AI for software work while trying to keep its prose from sounding generic. After repeated prompts failed to enforce the preferred style, an agent created a Python script that scans the repository for banned words and phrases. The script was added to CI, making the style check deterministic and reproducible.

### Source excerpt

Warning If you are pissed off reading this, you can start here and work your way back. I am using AI a lot. I am public about my use of it and when required make the necessary disclosures: "Assited-By" trailers or having to say "I used an AI to help write this software" on every Discourse post.1 Seems like whether or not you use AI, I feel more compelled just to disclose I did to avoid the "you didn't disclose it" argument. Such is life. ↩

## MSSQL Extension for VS Code: SQL Formatter, Azure SQL Database Provisioning, and More

DevFeed: [MSSQL Extension for VS Code: SQL Formatter, Azure SQL Database Provisioning, and More](<https://devfeed.tech/articles/mssql-extension-for-vs-code-sql-formatter-azure-sql-database-provisioning-and-more-50579.md>)

Original publisher: [Read original article](<https://devblogs.microsoft.com/azure-sql/vscode-mssql-august2026/>)

Author: Yo-Lei Chen

Published: 2026-08-19T17:18:32Z

Content type: release

Language: en

Sources: [Azure SQL Dev Corner](<https://devfeed.tech/sources/azure-sql-dev-corner.md>)

Topics: [Azure SQL](<https://devfeed.tech/topics/azure-sql.md>), [SQL](<https://devfeed.tech/topics/sql.md>), [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [formatting](<https://devfeed.tech/topics/formatting.md>), [Extension](<https://devfeed.tech/topics/extension.md>), [Provisioning](<https://devfeed.tech/topics/provisioning.md>), [Parsing](<https://devfeed.tech/topics/parsing.md>)

Tags: [azure-sql](<https://devfeed.tech/tags/azure-sql.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [extension](<https://devfeed.tech/tags/extension.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [general-availability](<https://devfeed.tech/tags/general-availability.md>), [keyboard-shortcuts](<https://devfeed.tech/tags/keyboard-shortcuts.md>), [library](<https://devfeed.tech/tags/library.md>), [net](<https://devfeed.tech/tags/net.md>), [preview](<https://devfeed.tech/tags/preview.md>), [provisioning](<https://devfeed.tech/tags/provisioning.md>), [sql](<https://devfeed.tech/tags/sql.md>), [vs-code](<https://devfeed.tech/tags/vs-code.md>)

### AI overview

The MSSQL extension for Visual Studio Code v1.45 introduces a SQL Formatter in public preview and makes Azure SQL Database Provisioning and Shortcuts Configuration generally available. The release supports customizable T-SQL formatting, free-tier Azure SQL database creation with deployment scripts and post-deployment actions, and configurable shortcuts for queries and commands.

### Source excerpt

Writing and maintaining SQL is easier when you can eliminate repetitive steps and keep your scripts cleanly formatted. With the MSSQL extension for VS Code v1.45, we're introducing the Public Preview of the SQL Formatter alongside the General Availability of Azure SQL Database Provisioning and Shortcuts Configuration. You can now apply consistent T-SQL formatting across [...] The post MSSQL Extension for VS Code: SQL Formatter, Azure SQL Database Provisioning, and More appeared first on Azure SQL Dev Corner.

## Code Review Responses: Add Context When It Counts

DevFeed: [Code Review Responses: Add Context When It Counts](<https://devfeed.tech/articles/code-review-responses-add-context-when-it-counts-23869.md>)

Original publisher: [Read original article](<http://testing.googleblog.com/2026/05/code-review-responses-add-context-when.html>)

Author: Google Testing Bloggers (noreply@blogger.com)

Published: 2026-05-12T12:30:00Z

Content type: article

Language: en

Sources: [Google Testing Blog](<https://devfeed.tech/sources/google-testing-blog.md>)

Topics: [Code review](<https://devfeed.tech/topics/code-review.md>), [engineering-culture](<https://devfeed.tech/topics/engineering-culture.md>)

Tags: [code-comments](<https://devfeed.tech/tags/code-comments.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [context](<https://devfeed.tech/tags/context.md>), [responses](<https://devfeed.tech/tags/responses.md>), [saicharan-nimmala](<https://devfeed.tech/tags/saicharan-nimmala.md>), [tott](<https://devfeed.tech/tags/tott.md>)

### AI overview

When a code change and review thread do not make the response obvious, add a brief explanation of how the comment was addressed or why a design choice was made. The excerpt gives examples: summarize added checks and tests so reviewers can verify the change, and explain a library trade-off by noting that datasets are typically small and a simpler API matters more than negligible performance gains. It also recommends capturing non-obvious design rationale in code comments or the commit description. For decisions shaped by offline discussion, briefly record the outcome or key reasoning for reviewers who only see the final code; the excerpt ends before completing this example.

### Source excerpt

This article was adapted from a Google Tech on the Toilet (TotT) episode. You can download a printer-friendly version of this TotT episode and post it in your office. By Saicharan Nimmala When responding to code review comments, responses like "Done," "Updated," or "Fixed" are commonly used to indicate addressing a suggestion. However, sometimes, a little extra context adds a lot of clarity. Next time you resolve a code review comment, ask yourself: "Is how I addressed the comment completely obvious from the code change and comment thread?" If not, supplement your response with a brief note to clarify the "why" or "how." Your reviewers will thank you. When is it helpful to add context to a code review comment response? Here are a few examples: Your code change doesn't fully explain how you addressed the comment. Providing a brief summary helps the reviewer verify the changes without re-examining every line of the delta, and creates a clearer historical record. Reviewer: This approach seems risky. It might not handle all the edge cases properly. Less helpful response: More helpful response: Author: Updated. Good catch. I've added checks for null, empty, and negative inputs, each with a new test case. Thanks! You made a design choice or trade-off that isn't self-evident. Capturing the reasoning behind a choice provides valuable context. Note that non-obvious design choices within the code should ideally be explained in code comments or the commit description as well. Reviewer: Consider using a more performant library for this data transformation. Less helpful response: More helpful response: Author: I'll go with Y. Done. I considered Library X, but stuck with Library Y because our datasets here are typically small, so the performance difference is negligible, and Library Y has a much simpler API. An offline discussion influenced the solution. Briefly summarizing the outcome or key reasoning from an offline sync ensures that other reviewers, who only see the final code

## Beyond Prompting: How Algorithmic Evolution Doubled our Training Speed

DevFeed: [Beyond Prompting: How Algorithmic Evolution Doubled our Training Speed](<https://devfeed.tech/articles/beyond-prompting-how-algorithmic-evolution-doubled-our-training-speed-35647.md>)

Original publisher: [Read original article](<https://engineering.klarna.com/beyond-prompting-how-algorithmic-evolution-doubled-our-training-speed-8f874af3080d?source=rss----86090d14ab52---4>)

Author: Rex Lin

Published: 2026-03-30T12:47:12Z

Content type: article

Language: en

Sources: [Klarna Engineering](<https://devfeed.tech/sources/klarna-engineering.md>)

Topics: [Machine learning](<https://devfeed.tech/topics/machine-learning.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [model architecture](<https://devfeed.tech/topics/model-architecture.md>), [Distributed Systems & Parallel Computing](<https://devfeed.tech/topics/distributed-systems-parallel-computing.md>), [gradient\_accumulation](<https://devfeed.tech/topics/gradient-accumulation.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-coding-assistant](<https://devfeed.tech/tags/ai-coding-assistant.md>), [artificial-intelligence](<https://devfeed.tech/tags/artificial-intelligence.md>), [attention](<https://devfeed.tech/tags/attention.md>), [candidate](<https://devfeed.tech/tags/candidate.md>), [chatbot](<https://devfeed.tech/tags/chatbot.md>), [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [coding](<https://devfeed.tech/tags/coding.md>), [coding-assistant](<https://devfeed.tech/tags/coding-assistant.md>), [customer](<https://devfeed.tech/tags/customer.md>), [customer-data](<https://devfeed.tech/tags/customer-data.md>), [data](<https://devfeed.tech/tags/data.md>), [data-pipelines](<https://devfeed.tech/tags/data-pipelines.md>), [engineer](<https://devfeed.tech/tags/engineer.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [error](<https://devfeed.tech/tags/error.md>), [evolution](<https://devfeed.tech/tags/evolution.md>), [machine-learning](<https://devfeed.tech/tags/machine-learning.md>), [prompting](<https://devfeed.tech/tags/prompting.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>), [speed](<https://devfeed.tech/tags/speed.md>), [training](<https://devfeed.tech/tags/training.md>)

### AI overview

Klarna and Google used AlphaEvolve to search code-level training optimizations for a large transformer, defining editable code, a performance metric, and constraints. Across nearly 6,000 candidate programs over three weeks, the reported pipeline improved from 49 to roughly 97 samples per second under deterministic production requirements, while model predictions also improved. AlphaEvolve explored mixed precision and asynchronous transfers, then deeper rewrites: direct scaled dot-product attention kernels and a preallocated contiguous dataset memory stream. A faster result of 143 samples per second depended on nondeterministic hardware shortcuts and was unsuitable for deployment. The account also reports that PASC, a stability mechanism useful at 10,000 samples, was dropped at 100,000, and that upgrading the underlying language model raised the candidate success rate from about two-thirds to 86-97%. The authors stress that constraint design and early stopping matter; the search itself was computationally expensive.

### Source excerpt

By Rex Lin and Valeria Verzi (Klarna Engineering), with Anant Nawalgaria (Google) We knew our training pipeline could be faster -- significantly faster. At Klarna, one of our largest models (a transformer trained on vast streams of payment events and shared like infrastructure across many internal systems) is on a tight training loop. Speed is money at our scale. The opportunity for improvement was not in the hyperparameters, but in the plumbing: the way numbers moved between processors, the way memory was allocated, the way the model performed its most basic mathematical operations. The challenge was scale. An engineer might try five or ten structural rewrites. A particularly ambitious one, armed with an AI coding assistant, might push to a hundred. But the full search space, the universe of possible combinations of precision formats, data pipelines, attention mechanisms, and gradient strategies, numbered in the thousands. We partnered with Google to apply a different kind of tool. Instead of trying to prompt our way to a solution, we handed the problem to AlphaEvolve, which treats code optimization the way evolution treats organisms: generate candidates, test them, keep the fittest, repeat. Over three weeks and nearly 6,000 candidate programs, it doubled our training speed and, unexpectedly, produced a better model in the process. The Machine That Writes Machines AlphaEvolve is not a chatbot for code. You don't interact with it through prompts. Instead, you build a sandbox around it. The engineer's job is to define what can change in the code and what cannot (passing only structural code snippets to the system, never customer data) to specify the metric that matters, and to set the constraints that must never be violated. You write hints in the form of code comments. You craft error messages that help the system learn when it fails. Then you step back. The system takes over from there. It generates a candidate program, runs it, measures the result, scores it. The b

## Using LLMs to Evaluate Code Interpretability Instead of Maintaining Comments

DevFeed: [Using LLMs to Evaluate Code Interpretability Instead of Maintaining Comments](<https://devfeed.tech/articles/comments-considered-harmful-in-the-age-of-llms-35601.md>)

Original publisher: [Read original article](<https://www.yegor256.com/2026/01/11/no-documentation-comments.html>)

Author: Yegor Bugayenko (yegor256@gmail.com)

Published: 2026-01-10T21:00:00Z

Content type: opinion

Language: en

Sources: [Yegor Bugayenko](<https://devfeed.tech/sources/yegor-bugayenko.md>)

Topics: [Large Language Model](<https://devfeed.tech/topics/llm.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [trust](<https://devfeed.tech/topics/trust.md>)

Tags: [code-comments](<https://devfeed.tech/tags/code-comments.md>), [code-documentation](<https://devfeed.tech/tags/code-documentation.md>), [code-interpretability](<https://devfeed.tech/tags/code-interpretability.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [llm-code-analysis](<https://devfeed.tech/tags/llm-code-analysis.md>), [llms](<https://devfeed.tech/tags/llms.md>), [quality](<https://devfeed.tech/tags/quality.md>), [self-documenting-code](<https://devfeed.tech/tags/self-documenting-code.md>), [software-engineering](<https://devfeed.tech/tags/software-engineering.md>)

### AI overview

The article argues that manually maintained code comments can become unclear or outdated. It proposes using LLMs to explain code on demand and introducing a Code Interpretability Score that can fail the build when code is too difficult for the model to explain.

### Source excerpt

Instead of writing code comments that decay and mislead, let LLMs generate documentation on-demand and fail the build when code is too obscure for them to explain.

## GitHub Copilot in Visual Studio -- November update

DevFeed: [GitHub Copilot in Visual Studio -- November update](<https://devfeed.tech/articles/github-copilot-in-visual-studio-november-update-72150.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2025-12-03-github-copilot-in-visual-studio-november-update>)

Author: Allison

Published: 2025-12-03T22:06:59Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [Visual Studio](<https://devfeed.tech/topics/visual-studio.md>), [GitHub Copilot](<https://devfeed.tech/topics/github-copilot.md>), [Microsoft](<https://devfeed.tech/topics/microsoft.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [2026](<https://devfeed.tech/tags/2026.md>), [actions](<https://devfeed.tech/tags/actions.md>), [agent](<https://devfeed.tech/tags/agent.md>), [ai](<https://devfeed.tech/tags/ai.md>), [ai-assisted-workflows](<https://devfeed.tech/tags/ai-assisted-workflows.md>), [availability](<https://devfeed.tech/tags/availability.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [cloud-agent](<https://devfeed.tech/tags/cloud-agent.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [coding-agent](<https://devfeed.tech/tags/coding-agent.md>), [context](<https://devfeed.tech/tags/context.md>), [general-availability](<https://devfeed.tech/tags/general-availability.md>), [github](<https://devfeed.tech/tags/github.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [highlights](<https://devfeed.tech/tags/highlights.md>), [update](<https://devfeed.tech/tags/update.md>), [visual-studio](<https://devfeed.tech/tags/visual-studio.md>), [visual-studio-2026](<https://devfeed.tech/tags/visual-studio-2026.md>), [what-s-new](<https://devfeed.tech/tags/what-s-new.md>)

### AI overview

Visual Studio 2026 became generally available in November 2025 with performance, UX, and AI-assisted workflow updates. Its Copilot cloud agent entered public preview, allowing users to delegate repetitive work such as UI cleanups, refactors, documentation updates, and multi-file edits; enabling "Copilot Coding Agent (Preview)" in settings is required. New context-menu actions generate code comments, explanations, or optimizations. All-in-one search adds "Did you mean" suggestions for typos or fuzzy queries.

### Source excerpt

November 2025 brought the general availability of Visual Studio 2026, new Copilot actions, and more. Highlights Here's what's new with GitHub Copilot in Visual Studio 2026: Visual Studio 2026 general...

## Improved pull request files changed experience now in public preview

DevFeed: [Improved pull request files changed experience now in public preview](<https://devfeed.tech/articles/improved-pull-request-files-changed-experience-now-in-public-preview-72492.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2025-06-26-improved-pull-request-files-changed-experience-now-in-public-preview>)

Author: Allison

Published: 2025-06-26T19:27:28Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [Developer experience](<https://devfeed.tech/topics/developer-experience.md>), [web design](<https://devfeed.tech/topics/web-design.md>)

Tags: [accessibility](<https://devfeed.tech/tags/accessibility.md>), [accessible](<https://devfeed.tech/tags/accessible.md>), [alerts](<https://devfeed.tech/tags/alerts.md>), [annotations](<https://devfeed.tech/tags/annotations.md>), [batching](<https://devfeed.tech/tags/batching.md>), [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [code-scanning](<https://devfeed.tech/tags/code-scanning.md>), [comment](<https://devfeed.tech/tags/comment.md>), [commit](<https://devfeed.tech/tags/commit.md>), [development](<https://devfeed.tech/tags/development.md>), [device](<https://devfeed.tech/tags/device.md>), [diffs](<https://devfeed.tech/tags/diffs.md>), [discussion](<https://devfeed.tech/tags/discussion.md>), [display](<https://devfeed.tech/tags/display.md>), [experience](<https://devfeed.tech/tags/experience.md>), [files](<https://devfeed.tech/tags/files.md>), [preview](<https://devfeed.tech/tags/preview.md>), [public](<https://devfeed.tech/tags/public.md>), [pull-request](<https://devfeed.tech/tags/pull-request.md>)

### AI overview

GitHub's improved pull request "Files changed" page is in public preview and rolling out. When available, users can open it with "Try the new experience" or through the Feature Preview dialog. It offers faster diff rendering with lower memory use, keyboard and screen reader improvements, a resizable file tree, searchable comment discovery, indicators for comments and status check annotations, and a review panel that shows pending comments. Draft comments persist across refreshes, and users can switch between split and unified diffs. Some options are customizable, including comment minimization and line spacing. The preview does not yet support batching suggestions, single-commit reviews, rich previews, code scanning alerts, annotations on unchanged files, or small screens, and is limited to 300 files plus other content size limits.

### Source excerpt

An improved, more accessible, and better performing pull request "Files changed" page is now available in public preview! This improved experience is rolling out now. Once it is available to...

## The AI-powered DevOps revolution: Redefining developer collaboration

DevFeed: [The AI-powered DevOps revolution: Redefining developer collaboration](<https://devfeed.tech/articles/the-ai-powered-devops-revolution-redefining-developer-collaboration-67524.md>)

Original publisher: [Read original article](<https://github.blog/ai-and-ml/github-copilot/the-ai-powered-devops-revolution-redefining-developer-collaboration/>)

Author: April Yoho

Published: 2025-05-01T17:12:05Z

Content type: tutorial

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>)

Topics: [DevOps](<https://devfeed.tech/topics/devops.md>), [AI tools for developers](<https://devfeed.tech/topics/ai-tools-for-developers.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [engineering-culture](<https://devfeed.tech/topics/engineering-culture.md>), [engineering-leadership](<https://devfeed.tech/topics/engineering-leadership.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-ml](<https://devfeed.tech/tags/ai-ml.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [code-quality](<https://devfeed.tech/tags/code-quality.md>), [code-review](<https://devfeed.tech/tags/code-review.md>), [coding](<https://devfeed.tech/tags/coding.md>), [developers](<https://devfeed.tech/tags/developers.md>), [devops](<https://devfeed.tech/tags/devops.md>), [github](<https://devfeed.tech/tags/github.md>), [github-copilot](<https://devfeed.tech/tags/github-copilot.md>), [software](<https://devfeed.tech/tags/software.md>), [software-delivery](<https://devfeed.tech/tags/software-delivery.md>), [teams](<https://devfeed.tech/tags/teams.md>)

### AI overview

The article describes using GitHub Copilot to support DevOps collaboration and software delivery. Examples include explaining codebases and improving README files, generating code comments and pull request summaries, reviewing changes, resolving merge conflicts, and investigating failed workflows.

### Source excerpt

Collaboration is crucial to successful software delivery. Let's dive into how AI can help your development teams decrease their time to delivery, and foster better communication and collaboration using GitHub Copilot.

## We are destroying software

DevFeed: [We are destroying software](<https://devfeed.tech/articles/we-are-destroying-software-20636.md>)

Original publisher: [Read original article](<http://antirez.com/news/145>)

Author: Antirez

Published: 2025-02-08T14:47:49Z

Content type: opinion

Language: en

Sources: [Antirez](<https://devfeed.tech/sources/antirez.md>)

Topics: [Code Modularity](<https://devfeed.tech/topics/code-modularity.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>), [Learning](<https://devfeed.tech/topics/learning.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [build](<https://devfeed.tech/tags/build.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [complex](<https://devfeed.tech/tags/complex.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dimension](<https://devfeed.tech/tags/dimension.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [fast](<https://devfeed.tech/tags/fast.md>), [features](<https://devfeed.tech/tags/features.md>), [framework](<https://devfeed.tech/tags/framework.md>), [hacking](<https://devfeed.tech/tags/hacking.md>), [language](<https://devfeed.tech/tags/language.md>), [learn](<https://devfeed.tech/tags/learn.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [make](<https://devfeed.tech/tags/make.md>), [optimizing](<https://devfeed.tech/tags/optimizing.md>), [programmers](<https://devfeed.tech/tags/programmers.md>), [software](<https://devfeed.tech/tags/software.md>)

### AI overview

The author argues that software quality and the joy of hacking are undermined when teams ignore complexity and favor speed or novelty over thoughtful design. The text points to complex build systems, dependency bloat, breaking backward API compatibility, unnecessary rewrites, and adopting new languages or frameworks without enough regard for existing systems or tailored solutions. It also defends reinventing components as a way to learn, comments as useful, and systems that keep simple tasks simple. These are the author's stated concerns, not a comparison or evaluation of specific tools.

### Source excerpt

We are destroying software by no longer taking complexity into account when adding features or optimizing some dimension. We are destroying software with complex build systems. We are destroying software with an absurd chain of dependencies, making everything bloated and fragile. We are destroying software telling new programmers: "Don't reinvent the wheel!". But, reinventing the wheel is how you learn how things work, and is the first step to make new, different wheels. We are destroying software by no longer caring about backward APIs compatibility. We are destroying software pushing for rewrites of things that work. We are destroying software by jumping on every new language, paradigm, and framework. We are destroying software by always underestimating how hard it is to work with existing complex libraries VS creating our stuff. We are destroying software by always thinking that the de-facto standard for XYZ is better than what we can do, tailored specifically for our use case. We are destroying software claiming that code comments are useless. We are destroying software mistaking it for a purely engineering discipline. We are destroying software by making systems that no longer scale down: simple things should be simple to accomplish, in any system. We are destroying software trying to produce code as fast as possible, not as well designed as possible. We are destroying software, and what will be left will no longer give us the joy of hacking. Comments

## Generative AI and the Reverse Baltimore Phenomenon

DevFeed: [Generative AI and the Reverse Baltimore Phenomenon](<https://devfeed.tech/articles/generative-ai-and-the-reverse-baltimore-phenomenon-30752.md>)

Original publisher: [Read original article](<http://blog.vanillajava.blog/2025/01/generative-ai-and-reverse-baltimore.html>)

Author: Peter Lawrey (noreply@blogger.com)

Published: 2025-01-08T13:08:00Z

Content type: opinion

Language: en

Sources: [Vanilla Java](<https://devfeed.tech/sources/vanilla-java.md>)

Topics: [Artificial Intelligence](<https://devfeed.tech/topics/ai.md>), [Documentation](<https://devfeed.tech/topics/documentation.md>), [Generative AI](<https://devfeed.tech/topics/generative-ai.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>), [context](<https://devfeed.tech/topics/context.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [context](<https://devfeed.tech/tags/context.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [opinion](<https://devfeed.tech/tags/opinion.md>)

### AI overview

The article introduces the Reverse Baltimore Phenomenon as an analogy for a tendency in generative AI-generated documentation and code comments. With limited context, AI may fill gaps with authoritative-sounding but unnecessary details, creating a misleading sense of completeness. The article argues that useful documentation should provide enough explanation without overwhelming readers.

### Source excerpt

One of the first challenges developers might face is getting generative AI to produce accurate documentation. Once you are comfortable doing this, the next challenge is creating enough documentation to be helpful without overwhelming the reader. Until generative AI came along, it might have seemed like there could never be too much documentation. Now, the challenge is to provide just enough detail to give understanding without overwhelming the material with unnecessary details. I was exploring the best way to generate accurate documentation for a project as I was flying over Australia and saw Alice Springs on the map, and it reminded me of the Reverse Baltimore Phenomenon. Generating documentation can give a "sense of completeness" that will likely be a distraction rather than have practical value. The text produced by a generative AI system can superficially convincingly feel "whole", but much of it is fluff that isn't actually helpful to the reader or an AI using it as instructions. e.g. copilot or a chat app. The Reverse Baltimore Phenomenon describes how small but isolated towns (like Alice Springs) can appear on a zoomed-out map while much larger cities elsewhere remain unlabeled. They appear because, in a sparsely populated area, the cartographer (or map algorithm) has "room" for that single label--despite far bigger cities in denser regions that don't make it onto the map. Generative AI exhibits a similar dynamic with documentation and code comments: in an attempt to be thorough, it sometimes fills "empty space" with details that don't truly matter. Much like Alice Springs popping up on world maps simply because there's little else around, AI-generated documentation can insert seemingly authoritative but superfluous commentary simply because there's room to elaborate. Both phenomena stem from "filling a void": Sparse vs. Dense Spaces Cartography: Sparse regions allow tiny towns to receive disproportionate emphasis. AI Text Generation: Minimal context leads the

## New commit details page (public beta)

DevFeed: [New commit details page (public beta)](<https://devfeed.tech/articles/new-commit-details-page-public-beta-72957.md>)

Original publisher: [Read original article](<https://github.blog/changelog/2024-09-18-new-commit-details-page-public-beta>)

Author: Allison

Published: 2024-09-18T20:17:55Z

Content type: release

Language: en

Sources: [GitHub Changelog](<https://devfeed.tech/sources/github-changelog.md>)

Topics: [User interface design](<https://devfeed.tech/topics/ui-design.md>)

Tags: [beta](<https://devfeed.tech/tags/beta.md>), [changes](<https://devfeed.tech/tags/changes.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [comment](<https://devfeed.tech/tags/comment.md>), [commit](<https://devfeed.tech/tags/commit.md>), [commits](<https://devfeed.tech/tags/commits.md>), [copy](<https://devfeed.tech/tags/copy.md>), [counts](<https://devfeed.tech/tags/counts.md>), [details](<https://devfeed.tech/tags/details.md>), [diffs](<https://devfeed.tech/tags/diffs.md>), [discussion](<https://devfeed.tech/tags/discussion.md>), [extension](<https://devfeed.tech/tags/extension.md>), [feedback](<https://devfeed.tech/tags/feedback.md>), [file](<https://devfeed.tech/tags/file.md>), [files](<https://devfeed.tech/tags/files.md>), [filter](<https://devfeed.tech/tags/filter.md>), [keyboard](<https://devfeed.tech/tags/keyboard.md>), [keys](<https://devfeed.tech/tags/keys.md>), [public](<https://devfeed.tech/tags/public.md>), [public-beta](<https://devfeed.tech/tags/public-beta.md>)

### AI overview

The public beta commit details page is enabled by default and adds tools to navigate and focus on a commit's changes. Comments float over the diff when selected, and file comment counts appear in the file tree. Use the up and down keys to move among changed lines, or the context menu to comment, copy, and select. Switching between unified and split views no longer reloads the page. Filters can narrow changed files by extension and hide diffs for files filtered out of the tree. To opt out, open Feature Preview in your profile, select New Commit Details Page, and click Disable.

### Source excerpt

A new version of the commit details page is now available in public beta! This new page, which is enabled by default, lets you quickly understand and navigate the changes...

## Less Is More: Principles for Simple Comments

DevFeed: [Less Is More: Principles for Simple Comments](<https://devfeed.tech/articles/less-is-more-principles-for-simple-comments-23859.md>)

Original publisher: [Read original article](<http://testing.googleblog.com/2024/08/less-is-more-principles-for-simple.html>)

Author: Google Testing Bloggers (noreply@blogger.com)

Published: 2024-08-21T12:38:00Z

Content type: article

Language: en

Sources: [Google Testing Blog](<https://devfeed.tech/sources/google-testing-blog.md>)

Topics: [code comments](<https://devfeed.tech/topics/code-comments.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>)

Tags: [code-comments](<https://devfeed.tech/tags/code-comments.md>), [code-health](<https://devfeed.tech/tags/code-health.md>), [cognitive-load](<https://devfeed.tech/tags/cognitive-load.md>), [david-bendory](<https://devfeed.tech/tags/david-bendory.md>), [future](<https://devfeed.tech/tags/future.md>), [simple](<https://devfeed.tech/tags/simple.md>), [tott](<https://devfeed.tech/tags/tott.md>)

### AI overview

Comments should be concise, self-contained, and understandable to someone unfamiliar with the code. Review them separately from the code to catch unclear or unnecessary wording, state intent without requiring readers to inspect surrounding logic, and include only essential context. For suggested improvements, link to relevant bugs or documentation to support follow-up, while retaining enough context in the comment because linked material may be inaccessible.

### Source excerpt

This is another post in our Code Health series. A version of this post originally appeared in Google bathrooms worldwide as a Google Testing on the Toilet episode. You can download a printer-friendly version to display in your office. By David Bendory Simplicity is the ultimate sophistication. -- Leonardo da Vinci You're staring at a wall of code resembling a Gordian knot of Klingon. What's making it worse? A sea of code comments so long that you'd need a bathroom break just to read them all! Let's fix that. Adopt the mindset of someone unfamiliar with the project to ensure simplicity. One approach is to separate the process of writing your comments from reviewing them; proofreading your comments without code context in mind helps ensure they are clear and concise for future readers. Use self-contained comments to clearly convey intent without relying on the surrounding code for context. If you need to read the code to understand the comment, you've got it backwards! Not self-contained; requires reading the code Suggested alternative // Respond to flashing lights in // rearview mirror. // Pull over for police and/or yield to // emergency vehicles. while flashing_lights_in_rearview_mirror() { if !move_to_slower_lane() { stop_on_shoulder(); } } Include only essential information in the comments and leverage external references to reduce cognitive load on the reader. For comments suggesting improvements, links to relevant bugs or docs keep comments concise while providing a path for follow-up. Note that linked docs may be inaccessible, so use judgment in deciding how much context to include directly in the comments. Too much potential improvement in the comment Suggested alternative // The local bus offers good average- // case performance. Consider using // the subway which may be faster // depending on factors like time of // day, weather, etc. // TODO: Consider various factors to // present the best transit option. // See issuetracker.fake/bus-vs-subway commute_by_lo

## Documentation Has Different Meanings and Requires Context-Specific Practices

DevFeed: [Documentation Has Different Meanings and Requires Context-Specific Practices](<https://devfeed.tech/articles/what-do-you-mean-documentation-30950.md>)

Original publisher: [Read original article](<https://www.doctave.com/blog/what-do-you-mean-documentation>)

Author: Niklas Begley

Published: 2023-10-17T07:00:00Z

Content type: opinion

Language: en

Sources: [Doctave](<https://devfeed.tech/sources/doctave-build-beautiful-developer-portals-with-docs-as-code.md>)

Topics: [Documentation](<https://devfeed.tech/topics/documentation.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>), [API](<https://devfeed.tech/topics/api.md>), [Markdown](<https://devfeed.tech/topics/markdown.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [best-practices](<https://devfeed.tech/tags/best-practices.md>), [blog](<https://devfeed.tech/tags/blog.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [technical-documentation](<https://devfeed.tech/tags/technical-documentation.md>), [toolchain](<https://devfeed.tech/tags/toolchain.md>)

### AI overview

The article argues that "documentation" can refer to different materials, from README files and code comments to developer portals, manuals, and API references. Because these forms serve different audiences and contexts, advice to reduce or replace documentation with automation cannot be applied universally.

### Source excerpt

There was a post submitted to the Orange Website™ the other week with the title "Delete half your documentation" (HN thread here). The author talks about how documentation inherently has a cost, and how we should minimize the amount of documentation we need. It becomes outdated, requires maintenance, and "nobody reads it anyway". Instead, they argue, we should use type annotations, tested examples, and other methods to remove the requirement for manually maintaining documentation. Some of these arguments have some merits in the right context. But what really caught my eye in the post was this line: "When I say 'documentation', I mean all forms of it, including README, Markdown files, docstrings, and code comments." Hang on. This is not all forms of documentation! And we certainly cannot apply these rules universally. Documentation is in the eyes of the reader I recently Tweeted about the confusion that can happen when people use the word "documentation" to refer to different things. The word "documentation" has so many meanings depending on who you're talking to. To one person it's a single README file. To another, it's a full blown dev portal with guides and API references. Causes legitimate confusion sometimes -- Niklas Begley (@NiklasBegley) September 6, 2023 The post mentioned above is a great example of this phenomenon. The author clearly had the view that "documentation" means code documentation: docstrings, and other supplementing information you can include in or generate from raw source code. This is quite natural for software developers, since it's the kind of documentation they are used to producing themselves. And for their case, perhaps relying on automation over prose to ensure your documentation is in order is a good idea. But what about developer portals, manuals, or API references? Surely a technical writer documenting a complex developer toolchain should not apply the same thinking and "delete half their documentation"? An overloaded term Technical

## Writing testable examples in Go

DevFeed: [Writing testable examples in Go](<https://devfeed.tech/articles/writing-testable-examples-in-go-22211.md>)

Original publisher: [Read original article](<https://www.ardanlabs.com/blog/2023/01/writing-testable-examples-in-go.html>)

Published: 2023-01-12T00:00:00Z

Content type: tutorial

Language: en

Sources: [William Kennedy](<https://devfeed.tech/sources/william-kennedy.md>)

Topics: [Go Language](<https://devfeed.tech/topics/go-language.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [formatting](<https://devfeed.tech/tags/formatting.md>), [generate-documentation](<https://devfeed.tech/tags/generate-documentation.md>), [go](<https://devfeed.tech/tags/go.md>), [golang](<https://devfeed.tech/tags/golang.md>), [run](<https://devfeed.tech/tags/run.md>), [test](<https://devfeed.tech/tags/test.md>), [testable-examples](<https://devfeed.tech/tags/testable-examples.md>)

### AI overview

Go documentation can include runnable examples that users can paste into a scratch file to try a package or API. The video describes adding a source file to a package, defining a test function, and writing the comments and syntax Go uses to display and format testable code in generated documentation. Documentation can be viewed in the terminal or, for publicly accessible code, on pkg.go.dev.

### Source excerpt

Introduction Google developed Go to be an alternative to C++ with the internet and scale in mind. Go's toolchain automates tasks that are easily overlooked, and amongst those tasks is generating documentation. Go has the ability to generate documentation based on comments written in your source code. As the end user, you have the choice to view this documentation in your terminal or, if your code is publicly accessible, on pkg.go.dev. Go also offers special comment syntax to further format and style the generated documentation.

## Writing good comments: the why, not the how

DevFeed: [Writing good comments: the why, not the how](<https://devfeed.tech/articles/writing-good-comments-the-why-not-the-how-52452.md>)

Original publisher: [Read original article](<http://www.jackfranklin.co.uk/blog/code-comments-why-not-how/>)

Published: 2020-07-28T00:00:00Z

Content type: opinion

Language: en

Sources: [Jack Franklin](<https://devfeed.tech/sources/jack-franklin.md>)

Topics: [code comments](<https://devfeed.tech/topics/code-comments.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [legacy systems](<https://devfeed.tech/topics/legacy-systems.md>)

Tags: [advice](<https://devfeed.tech/tags/advice.md>), [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [developers](<https://devfeed.tech/tags/developers.md>), [writing](<https://devfeed.tech/tags/writing.md>)

### AI overview

Comments that narrate what each line does add little when the code already shows it. The useful comments explain why code takes an unusual form: they supply missing context, such as a bug workaround, legacy constraint, or business edge case, and may document the problem, examples, and intended long-term fix. The article illustrates this with React code: a comment explains a temporary handling of spread `key` props, why the current logic cannot distinguish an explicitly undefined key, and the plan to deprecate key spreading. The author argues that code can be traced to learn what it does, while the reason for a decision is harder to recover later.

### Source excerpt

Code comments often get a bad reputation amongst developers as a waste of time, or a sign that your code could be improved. Here's a quote from a CONTRIBUTING.md file I found on GitHub (and there's many, many more like it): Comments should be avoided. If the code cannot be understood without comments, re-write the code to make it self-explanatory. I think this is pretty poor, incorrect advice the vast majority of the time. I think this stems back to most people's experience learning code. I have a strong memory of a lecturer in my first term of my Computer Science degree (although you'll find this advice in many courses, regardless of if it's University or not) telling us: Every line of code should have a comment explaining what it does. Your upcoming coursework will be marked on this criteria. So, if you're a new student fresh into the course, what do you do? You comment your code of course! // set the input value from the ENV value bar const inputValue = process.ENV.bar // now multiply it by 2 const newValue = inputValue * 2 // now pass it to the square function const finalValue = square(newValue) // this function squares a number and returns the new number const square = (x) => x * x The people who say that comments are bad are thinking of this style of commenting, and they'd be absolutely right! Comments like this that describe the "how" of programming add absolutely no value. Each of those comments above added nothing that couldn't be understood from the code immediately below it. Comment the why The problem with the comments above is that they comment the how. They describe the steps we take. Those comments are very rarely useful; code does a good job at explaining how we do something. After all, lines of code are instructions to tell the computer how to do something. Most of the time you'll find that you don't need to leave a myriad of comments because you can write the code you want to and you don't hit any oddities or quirks that cause the code to look unus

## VSCode Productivity: The rewrap plugin

DevFeed: [VSCode Productivity: The rewrap plugin](<https://devfeed.tech/articles/vscode-productivity-the-rewrap-plugin-52590.md>)

Original publisher: [Read original article](<http://www.jackfranklin.co.uk/blog/vscode-productivity-rewrap-plugin/>)

Published: 2020-07-02T00:00:00Z

Content type: article

Language: en

Sources: [Jack Franklin](<https://devfeed.tech/sources/jack-franklin.md>)

Topics: [Visual Studio Code](<https://devfeed.tech/topics/visual-studio-code.md>), [Tool](<https://devfeed.tech/topics/tool.md>)

Tags: [code-comments](<https://devfeed.tech/tags/code-comments.md>), [commits](<https://devfeed.tech/tags/commits.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [git](<https://devfeed.tech/tags/git.md>), [markdown](<https://devfeed.tech/tags/markdown.md>), [markdown-files](<https://devfeed.tech/tags/markdown-files.md>), [plugin](<https://devfeed.tech/tags/plugin.md>), [productivity](<https://devfeed.tech/tags/productivity.md>), [vscode](<https://devfeed.tech/tags/vscode.md>)

### AI overview

The VSCode rewrap plugin wraps code comments, Git commits, and Markdown to a chosen line length. The author says they use it regularly when writing documentation in code.

### Source excerpt

Over the next few weeks I'm going to be sharing some videos demonstrating parts of my workflow in VSCode - from managing changes with git (today's video), to reviewing pull requests, to running tests, and so on. Today I want to share the rewrap plugin for VSCode. It's a fantastic tool for easily wrapping code comments, Git commits, or Markdown files to a certain line length and I use it all the time when writing documentation in code. You can also watch this video directly on Youtube. If you've got any questions, comments, feedback, or just want to say hello, get in touch with me on Twitter.

## Maintainability through code-comment colocation

DevFeed: [Maintainability through code-comment colocation](<https://devfeed.tech/articles/colocation-51745.md>)

Original publisher: [Read original article](<https://kentcdodds.com/blog/colocation>)

Published: 2019-06-17T00:00:00Z

Content type: opinion

Language: en

Sources: [Kent C. Dodds Blog](<https://devfeed.tech/sources/kent-c-dodds-blog.md>)

Topics: [Maintainability](<https://devfeed.tech/topics/maintainability.md>), [code comments](<https://devfeed.tech/topics/code-comments.md>), [context](<https://devfeed.tech/topics/context.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [context](<https://devfeed.tech/tags/context.md>), [maintainability](<https://devfeed.tech/tags/maintainability.md>), [technical-debt](<https://devfeed.tech/tags/technical-debt.md>)

### AI overview

The article argues that colocating code comments with the code they explain improves maintainability. Separate comment files or directories can become outdated, be overlooked, and create unnecessary context switching for maintainers.

### Source excerpt

Maintainability through colocation

## A Philosophy of Software Design

DevFeed: [A Philosophy of Software Design](<https://devfeed.tech/articles/a-philosophy-of-software-design-36518.md>)

Original publisher: [Read original article](<https://berthub.eu/articles/posts/philosophy-of-software-design/>)

Published: 2018-10-18T10:07:35Z

Content type: opinion

Language: en

Sources: [Bert Hubert's writings](<https://devfeed.tech/sources/bert-hubert-s-writings.md>)

Topics: [Software Engineering](<https://devfeed.tech/topics/software-engineering.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [software-architecture](<https://devfeed.tech/topics/software-architecture.md>), [Software](<https://devfeed.tech/topics/software.md>)

Tags: [book-review](<https://devfeed.tech/tags/book-review.md>), [books](<https://devfeed.tech/tags/books.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [complexity](<https://devfeed.tech/tags/complexity.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [philosophy](<https://devfeed.tech/tags/philosophy.md>), [programming](<https://devfeed.tech/tags/programming.md>), [software-design](<https://devfeed.tech/tags/software-design.md>), [software-development](<https://devfeed.tech/tags/software-development.md>)

### AI overview

A review of John Ousterhout's book A Philosophy of Software Design, which distills decades of programming and language-development experience into practical ideas for managing software complexity. The review highlights concepts such as shallow and deep methods, information leakage, error prevention, and the role of source-code comments.

### Source excerpt

John Ousterhout, of TCL fame, has written a book that is as small (literally) as it is important. Weighing in at 178 none too big pages, it takes us on an inspired trip through what John has learned over the decades. There is no shortage of thought on programming. There is also no shortage of people doing programming. What is rare however is a compendium of mature insights from someone that clearly still is into programming.

## Writing system software: code comments.

DevFeed: [Writing system software: code comments.](<https://devfeed.tech/articles/writing-system-software-code-comments-20615.md>)

Original publisher: [Read original article](<http://antirez.com/news/124>)

Published: 2018-10-06T20:08:58Z

Content type: opinion

Language: en

Sources: [Antirez](<https://devfeed.tech/sources/antirez.md>)

Topics: [Code](<https://devfeed.tech/topics/code.md>), [Redis](<https://devfeed.tech/topics/redis.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [Lua](<https://devfeed.tech/topics/lua.md>)

Tags: [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [cognitive-load](<https://devfeed.tech/tags/cognitive-load.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [opinion](<https://devfeed.tech/tags/opinion.md>), [redis](<https://devfeed.tech/tags/redis.md>)

### AI overview

The article analyzes comments in the Redis source code and argues that comments are important for maintainability, debugging, and understanding code. It emphasizes that comments can explain why code takes a particular approach and reduce the cognitive load on readers.

### Source excerpt

For quite some time I've wanted to record a new video talking about code comments for my "writing system software" series on YouTube. However, after giving it some thought, I realized that the topic was better suited for a blog post, so here we are. In this post I analyze Redis comments, trying to categorize them. Along the way I try to show why, in my opinion, writing comments is of paramount importance in order to produce good code, that is maintainable in the long run and understandable by others and by the authors during modifications and debugging activities. Not everybody thinks likewise. Many believe that comments are useless if the code is solid enough. The idea is that when everything is well designed, the code itself documents what the code is doing, hence code comments are superfluous. I disagree with that vision for two main reasons: 1. Many comments don't explain what the code is doing. They explain what you can't understand just from what the code does. Often this missing information is *why* the code is doing a certain action, or why it's doing something that is clear instead of something else that would feel more natural. 2. While it is not generally useful to document, line by line, what the code is doing, because it is understandable just by reading it, a key goal in writing readable code is to lower the amount of effort and the number of details the reader should take into her or his head while reading some code. So comments can be, for me, a tool for lowering the cognitive load of the reader. The following code snippet is a good example of the second point above. Note that all the code snippets in this blog post are obtained from the Redis source code. Every code snipped is presented prefixed by the file name it was extracted from. The branch used is the current "unstable" with hash 32e0d237. scripting.c: /* Initial Stack: array */ lua_getglobal(lua,"table"); lua_pushstring(lua,"sort"); lua_gettable(lua,-2); /* Stack: array, table, table.sort */

## Preferring code over comments

DevFeed: [Preferring code over comments](<https://devfeed.tech/articles/preferring-code-over-comments-52532.md>)

Original publisher: [Read original article](<http://www.jackfranklin.co.uk/blog/prefer-code-over-comments/>)

Published: 2018-02-15T00:00:00Z

Content type: opinion

Language: en

Sources: [Jack Franklin](<https://devfeed.tech/sources/jack-franklin.md>)

Topics: [code comments](<https://devfeed.tech/topics/code-comments.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>)

Tags: [api](<https://devfeed.tech/tags/api.md>), [code](<https://devfeed.tech/tags/code.md>), [code-comments](<https://devfeed.tech/tags/code-comments.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [knowledge](<https://devfeed.tech/tags/knowledge.md>), [module](<https://devfeed.tech/tags/module.md>), [object](<https://devfeed.tech/tags/object.md>), [query](<https://devfeed.tech/tags/query.md>), [responses](<https://devfeed.tech/tags/responses.md>), [results](<https://devfeed.tech/tags/results.md>), [status](<https://devfeed.tech/tags/status.md>)

### AI overview

Comments can drift out of sync with code and make debugging harder. In the JavaScript API wrapper example, numeric response codes initially have explanatory comments; when a code changes or a new one is added, those comments may become misleading. The article replaces the numbers with named constants in an `API_RESPONSES` object (such as `SUCCESS`, `NO_RESULTS`, and `INVALID_KEY`), so the mapping is defined once and the conditions read more clearly without duplicate comments. It recommends considering clearer, self documenting code before adding a comment, while recognizing that comments can still help when code alone is hard to follow.

### Source excerpt

I think we'd all agree that code comments are a good way to document code that is otherwise hard to follow. Sometimes there's just no way to make the code as clear as you'd like and a comment is a good solution. That said, comments have one large issue: they can get out of date. An outdated comment that is incorrect could cause you to lose a lot of time to debugging. You may set out with the best intentions of keeping the code and comment in sync but realistically over time it won't happen. Whenever possible it's best to remove comments if you can make the code more explicit. I came across a nice example of this recently that shows this in action. The problem with comments in action I was working with an API that would respond with a custom code property on each response. This API was taking a query and returning search results, and the code in the response would signify if the response was successful, or if no results were found, or if there was an API error. I wrote a first pass at a small JavaScript module to wrap this API and ended up with code that looked like so: makeRequestToLibrary().then(({ code }) => { if (code === 2000) { // 2000 is the success code return { success: true, ... } } else if (code === 4040) { // 4040 = our request returned no results return { success: false ... } } else if (code === 4020 || code === 4021) { // 4020 and 4021 are API issues - invalid key, invalid request, etc return { success: false, ... } } }) This works well, and is reasonably clear, but is leaving itself wide open to the outdated comments problem. It would be very easy for a developer to add in a new code we need to deal with and not update the comments, or the API to change its codes, or a combination of both of them. You'd be in danger of ending up with something that looked like this: } else if (code === 4030) { // 4020 and 4021 are API issues - invalid key, invalid request, etc return { success: false, ... } } Here the comment bears no relation to the error - is it the

[Next page](<https://devfeed.tech/tags/code-comments.md?cursor=WyIyMDE4LTAyLTE1VDAwOjAwOjAwKzAwOjAwIiwgImMwOTFjYTUwLTlmNjMtNGZhZS1hNTYxLTRmNzVlYjM5ZTg3MSJd>)