Loading...
Loading...
Compare original and translation side by side
| Reference | Topics |
|---|---|
| design-process | Four design axes, work backwards, minimize surface area |
| surface-area | Internal packages, no global state, unknown outputs, mutation guards |
| dependencies | Accept don't instantiate, accept interfaces, return structs |
| evolution | Breaking changes, param objects vs functional options, result objects |
| testability | |
| 参考链接 | 主题 |
|---|---|
| design-process | 四个设计维度、从使用场景倒推、最小化接口面 |
| surface-area | 内部包、无全局状态、未知输出、变更防护 |
| dependencies | 依赖注入而非实例化、接受接口、返回结构体 |
| evolution | 破坏性变更、参数对象vs函数式选项、结果对象 |
| testability | |
internal/io.Reader*os.FileNewFromFileFooManagerutilcommonhelpershttptesttestTimeNow*rand.RandWithXfs.FSinternal/io.Reader*os.FileNewFromFileFooManagerutilcommonhelpershttptesttestWithXTimeNow*rand.Randfs.FS