好资源和短想法
augustbradley 的 Youtube 视频
Knowledge Management System in Notion – Introducing Vaults
Knowledge Management System in Notion – Introducing Vaults
结合上述的三个讨论:「抽取更多单元」、「集成测试配合单元测试」、「避免测试私有方法」的思想,我们能发现一种高效的 TDD 方式:
先写集成测试,覆盖原始的需求,确保最通用、最基础的逻辑能够正常工作。
重构时抽取私有方法,将逻辑分解到更小的方法(输入,解析,处理,输出)中去。
抽取、整理私有方法,成为新的、更小的单元,并进行单元测试。
在每个单元中覆盖到各种边界条件的处理,若这个单元开始变得复杂,那么它的单元测试又向集成测试发展,因此我们又能回到 1 重复整个流程。
先写集成测试,覆盖原始的需求,确保最通用、最基础的逻辑能够正常工作。
重构时抽取私有方法,将逻辑分解到更小的方法(输入,解析,处理,输出)中去。
抽取、整理私有方法,成为新的、更小的单元,并进行单元测试。
在每个单元中覆盖到各种边界条件的处理,若这个单元开始变得复杂,那么它的单元测试又向集成测试发展,因此我们又能回到 1 重复整个流程。
Eigenquestions: The Art of Framing Problems https://coda.io/@shishir/eigenquestions-the-art-of-framing-problems
Migrating Away from Google Analytics https://freshman.tech/google-analytics-to-plausible/
Announcing The Zig Software Foundation https://ziglang.org/news/announcing-zig-software-foundation.html
How much your computer can do in a second (2015) http://computers-are-fast.github.io
How to Understand Things https://nabeelqu.co/understanding
Healthy Self-Doubt https://nerdygirl.com/2020/07/02/healthy-self-doubt/