博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
代码整洁之道——我们是作者
阅读量:4647 次
发布时间:2019-06-09

本文共 941 字,大约阅读时间需要 3 分钟。

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

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

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.

转载于:https://www.cnblogs.com/stephen-java/p/10533894.html

你可能感兴趣的文章
[18]Debian Linux Install GNU GCC Compiler and Development Environment
查看>>
JAVA多线程
查看>>
ACE(Adaptive Communication Environment)介绍
查看>>
delphi 更改DBGrid 颜色技巧
查看>>
python编码问题
查看>>
POJ 2031 Building a Space Station
查看>>
面向对象1
查看>>
编程开发之--java多线程学习总结(5)
查看>>
如何让 zend studio 10 识别 Phalcon语法并且进行语法提示
查看>>
任意阶幻方(魔方矩阵)C语言实现
查看>>
视频教程--ASP.NET MVC 使用 Petapoco 微型ORM框架+NpgSql驱动连接 PostgreSQL数据库
查看>>
第五次作业
查看>>
织梦教程
查看>>
杭电多校 Harvest of Apples 莫队
查看>>
java 第11次作业:你能看懂就说明你理解了——this关键字
查看>>
C/C++心得-结构体
查看>>
函数名作为参数传递
查看>>
apt-get for ubuntu 工具简介
查看>>
数值计算算法-多项式插值算法的实现与分析
查看>>
day8-异常处理与网络编程
查看>>