知识卡片

普通读书笔记卡 · 10898.a · 生成模型:未记录

提前遵循标准减少返工

理解等级:中级

从第一版提交起就考虑团队的代码标准、边界情况和必要说明。越早统一参数管理、可读性和测试要求,评审时越少重复指出基本问题,合并后的故障修复也更可控。局部实现可能因此稍慢,需要把评审和修复投入一起计算。

这张卡片看不懂?

已有反馈 · 0 条

    还没有人提交反馈。

    在整书笔记中的位置

    原书出处 · 1 处

    • 原书第2章 效率、有效性和生产力 个人在上下文中做好工程工作 · 查看原书依据

      Developers may resort to subpar coding practices if their only aim is to ensure that the code runs (on their machines). They may hardcode parameters, not address edge cases, or skip including comments. This might produce immediate results but slow the overall development process as more time is spent on code reviews and fixing issues. Instead, making good coding practices part of the initial code delivery will lead to a slightly delayed but successful PR merge.

    参考来源

    - 位置:《Leading Effective Engineering Teams: Lessons for Individual Contributors and Managers from 10 Years at Google》原书第2章《效率、有效性和生产力》,个人在上下文中做好工程工作(来源项目 book-source,extracted/Leading Effective Engineering Teams Lessons for Individual Contributors and Managers from 10 Years at Google/_epub-src/OEBPS/ch02.html#effective_efficiency_for_beginners,块 192) - 结论依据:原文用硬编码、跳过边界和缺少说明为例,指出先让代码跑通会把成本转嫁给评审与修复。 - 原始内容:Developers may resort to subpar coding practices if their only aim is to ensure that the code runs (on their machines). They may hardcode parameters, not address edge cases, or skip including comments. This might produce immediate results but slow the overall development process as more time is spent on code reviews and fixing issues. Instead, making good coding practices part of the initial code delivery will lead to a slightly delayed but successful PR merge.