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

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

comments

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


当前回答

我记不清了,大概是这样的:

Person p = new Person("John", "Doe", "male");
Collection women = new ArrayList();
women.insert(p.getTail());

这是肮脏的代码;)

2008-10-10 08:40:20

其他回答

看这个:

'On Error Goto Hell.
2009-04-03 13:20:24
// good luck!
2008-12-02 16:14:34
//The following code is commented out
//(a load of commented out code followed)
2008-10-09 02:32:04
Get This hack!

在一行汇编代码中,在几页未注释的代码之后。

2008-10-08 20:09:58
//ALL YOUR BASE ARE BELONG TO US

...这让我的老板以为有人黑进了系统。他不知道这个笑话。

2008-10-08 20:09:45

推荐文章

  • 在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

最新文章

  • 如何删除默认的导航栏空间在SwiftUI导航视图
  • 我可以列出所有的标准Go包吗?
  • 证书验证失败:无法获得本地颁发者证书
  • 警告:API ' variable . getjavacompile()'已过时,已被' variable . getjavacompileprovider()'取代
  • 打开同一目录两次
  • 实体框架核心:在上一个操作完成之前,在此上下文中开始的第二个操作
  • NullInjectorError: AngularFirestore没有提供程序
  • 如何为构造函数定制Visual Studio的私有字段生成快捷方式?
  • 从元组/数组值派生联合类型
  • 如何在Angular2中截断文本?
  • 安装tzdata非交互式
  • ionic 2 - Error在Android Studio中找不到Gradle的安装版本
  • 如何查看所有地区所有正在运行的Amazon EC2实例?
  • 当使用pip3安装包时,“Python中的ssl模块不可用”
  • 安装APK时出现错误

标签

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