2025-08-23
by kevin
54 views
学习笔记
1、 程序设计是组装代码,系统设计是组装服务。 程序设计的组件是变量、函数、类等,系统设计的组件是服务器、数据库、缓存、队列、事件总线、代理等。 2、 如果一个系统很长时间不出错,它的设计就是良好的。 如果你进一步看了代码,脱口而出: 哈,这比我想的要简单 ,或者 这个部分不用我操心,即使出问题也容易解决 ,它的设计就是优秀的。 3、 良好的系统设计,总是从一个有效的简单系统发展而来...
阅读全文 »
2024-03-06
by kevin
26 views
随堂笔记
设计系统的架构受制于产生这些设计的组织的沟通结构。 康威定律是马尔文·康威1967年提出的。即系统设计本质上反映了企业的组织机构。系统各个模块间的接口也反映了企业各个部门之间的信息流动和合作方式。 康威定律包含4个子定律: 第一定律 组织沟通方式会通过系统设计表达出来 第二定律 时间再多一件事...
阅读全文 »
2023-07-07
by kevin
19 views
读书
The compiler also doesn’t know anything about how to handle external dependencies, such as third-party JAR files in Java. Often the best we can do without a build system is to download the dependency ...
阅读全文 »
2022-11-30
by kevin
18 views
读书
能够立即有效地浏览整个代码库意味着很容易找到相关的库来重用和好的例子来复制。 Most of the time, developers won’t notice when indices are out of date. They only care about a small subset of code, and even for that they generally won’t know...
阅读全文 »
2022-11-18
by kevin
16 views
读书
In all of this thinking, we’re assigning special significance to the trunk branch. But of course, “trunk” in your VCS is only the technology default, and an organization can choose different policies ...
阅读全文 »
2022-11-15
by kevin
20 views
读书
Our discussion of deprecation begins from the fundamental premise that code is a liability, not an asset. After all, if code were an asset, why should we even bother spending time trying to turn down ...
阅读全文 »
2022-11-09
by kevin
17 views
读书
Unit tests are limited by the imagination of the engineer writing them. That is, they can only test for anticipated behaviors and inputs. However, issues that users find with a product are mostly unan...
阅读全文 »
2022-10-20
by kevin
21 views
读书
Writing testable code requires an upfront investment. It is especially critical early in the lifetime of a codebase because the later testability is taken into account, the more difficult it is to app...
阅读全文 »
2022-10-11
by kevin
21 views
读书
At Google, we’ve found that engineers sometimes need to be persuaded that testing via public APIs is better than testing against implementation details. The reluctance is understandable because it’s o...
阅读全文 »
2022-10-01
by kevin
15 views
读书
Unlike the QA processes of yore, in which rooms of dedicated software testers pored over new versions of a system, exercising every possible behavior, the engineers who build systems today play an act...
阅读全文 »