# 临时有感聊聊注释&变量名

{% embed url="<https://v.douyin.com/r8aYQ3P/>" %}

{% embed url="<https://www.bilibili.com/video/BV1P5411d7st/>" %}

今天在一个项目里看到这样一段代码

不瞒大家说啊

我琢磨了差不多

我也没看表

我觉得怎么也有一分多钟了吧

我才发现其实他就是个去重（的功能）

那我想说的是什么呢

不是说这段代码写的有多牛哈

就是大部分好程序都是迭代出来的

所以你会发现那些有经验的程序员哈

虽然他们平时很少写注视

但是

他们对那些该写注视的地方特别敏感

我们再来看一个例子哈

这是一段java代码

那我相信啊大部分同学跟我一样

都得读一会才能发现他想干什么

那如果我们这样呢

加个注视呢 大家看

是不是很清晰

都不开发票或者都开发票

（就return）

再或者呢我们把变量名优化一下

别老写 abc

这样写

是不是也很清晰

连注视都不用写了

所以有些时候哈

不一定非得写注视

我们可以把一些心思

放在这个变量的命名上


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://sunzsh.gitbook.io/xiaoshan.bug/lin-shi-you-gan-liao-liao-zhu-shi-bian-liang-ming.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
