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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012477144/article/details/87871532

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

在修改代码的过程中,读与写花费时间的比例大于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.

猜你喜欢

转载自blog.csdn.net/u012477144/article/details/87871532