Stop Collecting GitHub Repos. Use One Like This.
说明与用途
一个小型、可重复的工作流程,让开发者专注于单个仓库,理解单一行为,做出具体修改,并通过测试验证结果,将保存的代码转化为可学习的 artefact。
问题
Saved repositories become unexamined promises; developers lack a concrete finish line to understand and modify code.
结果
The workflow enables a developer to understand a codebase, make a small, well-defined change, and verify it with tests, turning a saved repo into a learnable artifact.
工作流
- Choose a repository and a single observable behavior.
- Identify an entry point (route, command, component, etc.).
- Predict the expected outcome before running the example.
- Run the example and compare actual behavior to the prediction.
- Locate the code path that implements the behavior.
- Make a focused change that limits the homepage to three posts.
- Add a test that verifies the new behavior and ensures data remains intact.
- Document the process in a note with behavior, path, prediction, change, evidence, and limits.
证据
Choose a question with an observable answer instead: where does this page get its data, what determines the output order, or how does an invalid input reach an error message?
In a local branch, change the example so the homepage shows at most three newest posts.
Read the existing checks before adding your own. In this example, tests/test_blog.py includes a homepage test that looks for expected content.
- 记录日期: 2026-11-02T10:28:45.197Z