美文网首页
代码整洁之道——我们是作者

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

作者: Stephen_java | 来源:发表于2019-02-21 20:41 被阅读17次

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

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