Appearance
Pair Programming
日期:2026-06-17 · 场景:Pair Programming
📖 Vocabulary
| Word | Meaning | Example |
|---|---|---|
| commit | 提交(git 保存代码快照) | Each commit should represent one logical change. 每次提交应代表一个逻辑改动。 |
| boilerplate | 样板代码(重复的必要代码) | The framework reduces boilerplate for common tasks. 这个框架减少了常见任务的样板代码。 |
| shard | 分片(按规则拆分数据到多个节点) | We shard the database by tenant to scale horizontally. 我们按租户对数据库分片以横向扩展。 |
| transaction | 事务(一组原子性操作) | Wrap the updates in a transaction to keep data consistent. 把更新包在事务里以保持数据一致。 |
| checksum | 校验和(检测数据完整性的值) | Verify the checksum before trusting the downloaded file. 信任下载文件前先校验校验和。 |
🎧 Audio
💬 Dialogue
A: Want to pair on the payment module? A:要不要结对搞一下支付模块?
B: Sure. Let us wrap the update in a single transaction. B:好啊。我们把更新包在一个事务里。
A: Good. Each commit should be small and focused. A:好。每次提交都要小而专注。
B: I will remove the boilerplate first. B:我先把样板代码清掉。
A: Also, should we shard the table by user region? A:另外,要不要按用户地区给表分片?
B: Later. First verify the checksum on every payload. B:等等。先校验每个负载的校验和。