The Art of Readable Code的笔记(47)

>我来写笔记

按有用程度 按页码先后 最新笔记

  • forgetthisuser

    forgetthisuser (So many papers unread)

    Names like i, j, iter, and it are commonly used as indices and loop iterators. Even though these names are generic, they’re understood to mean “I am an iterator.” (In fact, if you used one of these names for some other purpose, it would be confusing—so don’t do that!) But sometimes there are better iterator names than i, j, and k. For instance, the following loops find which users belong t...

    2013-02-05 12:12   1人喜欢

  • [已注销]

    [已注销]

    Keeping Your Codebase Small 不错.   (1回应)

    2011-11-25 11:59

  • 晨星

    晨星

    Instead of imagining that our main task is to instruct a computer what to do, let us concentrate rather on explaining to human beings what we want a computer to do. --Knuth

    2018-10-22 00:49

  • 晨星

    晨星

    Better to have all the difficult code confined to one place.

    2018-10-22 00:48

  • 晨星

    晨星

    Those other people may include you in six months.

    2018-10-22 00:47

  • 晨星

    晨星

    When a web server frequently returns 4xx or 5xx HTTP response code, it's a sign of a potential problem (4xx being a client errir; 5xx being a server error). ——常识,温一下~~

    2018-09-23 22:20

  • 晨星

    晨星

    A commonly cited statistic is that the average software engineer produces ten shippable lines of code a day.

    2018-09-23 22:16

  • 晨星

    晨星

    What we've described is a natural law of the universe - as many coordinated system grows, the complexitity needed to keep it glued together grows even faster.

    2018-09-17 23:41

  • 晨星

    晨星

    There is a small (but tangible) readibility cost of adding a new function to your code. It may make sense to add these smaller functions if they're needed by other parts of your project. But until then, there is no need. 但作者似乎没有考虑随着项目的演化小函数会变大这一因素。

    2018-09-17 23:36

  • 晨星

    晨星

    The more of your project you can break away as isolated libraries, the better, because the rest of your code will be smaller and easier to think about.

    2018-09-17 23:32

<前页 1 2 3 4 5 后页>

笔记是你写在书页留白边上的内容;是你阅读中的批注、摘抄及随感。

笔记必须是自己所写,不欢迎转载。摘抄原文的部分应该进行特殊标明。

The Art of Readable Code

>The Art of Readable Code