Week 7 Pre-reading Quiz
本页目录· 20 条
| Grade | 6.00 out of 6.00 (100%) |
|---|
Question 1
English
Scenario: A development team is tasked with building a high-security payment gateway. To ensure the codebase is resilient and maintainable over the long term, the lead architect mandates pair programming for all critical modules.
How does this practice primarily contribute to the resilience of the codebase in this scenario?
- a. By encouraging "code silos" where specific sections of the gateway are understood only by the pair that wrote them.
- b. By ensuring that only senior developers are responsible for writing critical security logic while others observe.
- c. By discouraging individual ownership so that no single developer feels accountable for the quality of the code.
- d. By fostering a shared understanding of the system and reducing the team's reliance on any single individual's expertise.
中文:
一个开发团队负责构建一个高安全性的支付网关(payment gateway)。为了确保代码库长期具有韧性(resilience)和可维护性,首席架构师要求所有关键模块都采用 Pair Programming(结对编程)。
在这种情况下,结对编程主要如何提高代码库的韧性?
- a. 鼓励形成“代码孤岛”,使某些代码只有编写它们的两个人理解。
- b. 确保只有高级开发人员负责编写关键安全代码,其他人只负责观察。