46

请停止代码注释

 4 years ago
source link: https://juejin.im/post/5cf60bc8f265da1baa1e609e
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
“干净的代码应该像写好的散文一样” - Robert C. Martin 不良代码的通病就是有很多注释。这是凌乱的源代码最明显的迹象。 每个程序员的目标应该是编写干净和富有表现力的代码,以避免代码注释。每个变量,函数和类的目的应该隐含在其名称和结构中。 当其

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK