你喜欢你的评论? [英] How do you like your comments?

查看:114
本文介绍了你喜欢你的评论?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您对评论的最佳做法是什么?什么时候应该使用,它们应该包含什么?

What are your best practices for comments? When should they be used, and what they should contain? Or are comments even needed?

推荐答案

注释对于可维护性至关重要。要记住的最重要的一点是解释为什么您正在做某事,而不是您所做的

Comments are essential for maintainability. The most important point to remember is to explain WHY you are doing something, not WHAT you are doing.

这篇关于你喜欢你的评论?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆