While there are many resources to help programmers write better code—such as books and static analyzers—there are few for writing better comments. While it's easy to measure the quantity of comments in a program, it's hard to measure the quality, and the two are not necessarily correlated. A bad comment is worse than no comment at all. Here are some rules to help you achieve a happy medium. The post Best practices for writing code comments appeared first on Stack Overflow Blog.
https://stackoverflow.blog/2021/07/05/best-practices-for-writing-code-comments/
Ak chcete pridať komentár, prihláste sa
Ostatné príspevky v tejto skupine

Ryan welcomes Illia Polosukhin, co-author of the original "Attention Is All You Need" Transformers paper and co-founder of NEAR, on the show to talk about the development and impact of the Transformer

An experiment to level up your coding skills on Stack Overflow, while learning in a space that welcomes creative problem-solving. Discover how we built it. https://stackoverflow.blog/2025/07/07/gettin

Ryan welcomes Matt DeBergalis, CTO at Apollo GraphQL, to discuss the evolution and future of API orchestration, the benefits of GraphQL in managing API complexity, its seamless integration with AI and

Jon Skeet, the first Stack Overflow user with a million reputation, sits down with Ryan to share his wealth of knowledge on all things development: the deceptively simple but actually complicated prob

Large language models are non-deterministic by design. Here's how you can inject a little bit of determinism into GenAI workflows. https://stackoverflow.blog/2025/06/30/reliability-for-unreliable-llm

Ryan is joined by Tobiko Data co-founders Toby Mao and Iaroslav Zeigerman to talk about the crucial role of rigorous data practices and tooling, the innovations of Tobiko Data’s SQLMesh and SQLGlot, a

AI is no longer just a luxury for the most tech savvy companies — it's now a necessity for organizational transformation. How are real teams successfully leveraging and innovating with these new tools