Code
  • 首页
  • cpu-architecture
  • performance
  • c++
  • branch-prediction
  • java
2024-01-03 09:00:02

你遇到过的源代码中最好的注释是什么?

comments

你遇到过的源代码中最好的注释是什么?


当前回答

//Please comment on your source code
2009-04-20 04:51:21

其他回答

class Act //That's me!!!
{

}
2009-03-05 18:31:26
return 1; # returns 1
2008-10-08 23:13:06

我相信在JBoss的某个地方有一行写着

return null; //Not really null

我一直很喜欢这句话。

2008-10-09 21:36:02

我告诉学员至少做一些异常处理。这是我在每一个db调用....返回

Catch (Exception e) {
    //eat it
}
2008-10-11 01:42:40

简单但有效的注释,在一些不太安全的c++代码之前

// yikes
2008-10-08 20:59:20

推荐文章

  • 在VS Code中禁用“Comments are not allowed In JSON”错误
  • Swift:理解// MARK
  • 在构建中编写注释的语法是什么?gradle文件?
  • Java注释中的/**和/*
  • 有没有办法注释掉.ASPX页面中的标记?
  • Jenkins:注释可以添加到Jenkins文件中吗?
  • TypeScript注释的语法记录在哪里?
  • CSV文件可以有注释吗?
  • 什么是自文档化代码?它能取代文档化良好的代码吗?
  • 在erb中添加注释的最佳方法
  • 为什么Python没有多行注释?
  • 我应该在批处理文件中使用哪种注释风格?
  • 如何在Office VBA编辑器中注释和取消注释代码块
  • “# noqa”在Python注释中是什么意思?
  • 我可以向pip需求文件添加注释吗?

aliyun

最新文章

  • 插入一行到熊猫数据框架
  • swift语言中的结构与类
  • 我如何在Swift连接字符串?
  • 要列出Pandas DataFrame列
  • src和dist文件夹的作用是什么?
  • 加载资源:net::ERR_INSECURE_RESPONSE失败
  • 如何使用yyyyMMddHHmmss格式格式化当前时间?
  • 如何连接列在Postgres选择?
  • Uint8_t不能用cout打印
  • 在Django模型中存储电话号码的最佳方法是什么?
  • 请求失败:不可接受的内容类型:文本/html使用AFNetworking 2.0
  • 缺少推荐的图标文件-该包不包含iPhone / iPod Touch的应用程序图标,像素为“120x120”,png格式
  • 防止滚动条增加到Chrome页面的宽度
  • “node_modules”文件夹应该包含在git存储库中吗
  • 在c#的控制台应用程序中使用'async

标签

cpu-architectureperformancec++branch-predictionjavaundogit-commitgitversion-controlgit-remotegit-pushgit-branchgit-pullgit-fetchpythongeneratoriteratorjsonmime-typescontent-typearraysjavascriptgit-addcode-formattingcstandards-complianceoperatorscommentsdynamic-memory-allocationstackmemory-managementheap-memorylanguage-agnosticoverwritebackground-colorbrowserhtmldomjqueryvisibilityuse-strictsyntaxjslintremote-branchgit-checkoutpython-moduleidiomsprogram-entry-pointnamespacesbranch
2025 code 京ICP备15047053号-1