ICode9

精准搜索请尝试: 精确搜索
首页 > 其他分享> 文章详细

代码整洁之道——我们是作者

2021-06-22 12:57:34  阅读:149  来源: 互联网

标签:write code 代码 之道 book 整洁


《代码整洁之道》读书笔记系列前言:

在购买了《代码整洁之道》这本书后,迫不及待地开始看、学习起来。本书作者马丁,主要讲述了代码质量与其整洁度成正比的道理,并由此揭示代码整洁之道。我将在学习过程中持续更新读书笔记。

After purchasing this book, I can’t wait to start watching and learning. The author of this book is Martin, this book mainly tells the truth that the quality of the code is directly proportional to its cleanliness, and thus reveals the way the code is neat. I will continue to update my study notes during the learning process.

写代码的时候记得自己是作者,要为评判你工作的读者写代码。

在修改代码的过程中,读与写花费时间的比例大于10:1,在写新代码时,我们一直在读旧代码。

要想干得快,要想轻松写代码,就得先让代码易读。

When you write code, remember that you are the author, and write code for the readers who will judge your work.

The ratio of read time to write time is greater than 10:1, during code modification, and we are always reading old code when writing new code.

If you want to do it fast, if you want to write code easily, you have to make the code readable.

标签:write,code,代码,之道,book,整洁
来源: https://blog.51cto.com/StephenJava/2936391

本站声明: 1. iCode9 技术分享网(下文简称本站)提供的所有内容,仅供技术学习、探讨和分享;
2. 关于本站的所有留言、评论、转载及引用,纯属内容发起人的个人观点,与本站观点和立场无关;
3. 关于本站的所有言论和文字,纯属内容发起人的个人观点,与本站观点和立场无关;
4. 本站文章均是网友提供,不完全保证技术分享内容的完整性、准确性、时效性、风险性和版权归属;如您发现该文章侵犯了您的权益,可联系我们第一时间进行删除;
5. 本站为非盈利性的个人网站,所有内容不会用来进行牟利,也不会利用任何形式的广告来间接获益,纯粹是为了广大技术爱好者提供技术内容和技术思想的分享性交流网站。

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有