搜索

pdf文档 Changing Legacy Code: With Confidence

982.54 KB 114 页 0 下载 63 浏览 0 评论 0 收藏
所属分类: 后端开发 / C++
语言 格式 评分
英语
.pdf
3
摘要
The document emphasizes the value of legacy code, which works effectively and generates revenue for the company. It highlights the challenges of maintaining and migrating legacy code, such as changing best practices, developer turnover, and evolving project structures. The goals include preserving working code, introducing testing, gradual improvement, making code self-documenting, instilling confidence in changes, and developing for maintenance. The document also discusses the importance of soft skills, judgment calls, and the ongoing nature of code maintenance. It addresses the limitations of relying solely on tools and the costs associated with testing, while providing resources for effective legacy code management.
AI总结
### 总结:《Changing Legacy Code: With Confidence》 #### 1. **遗产代码的价值** - 遗产代码能够正常运行,尽管可能缺乏测试,但经过实际验证。 - 它记录了项目在开发过程中遇到的决策和问题。 - 遗产代码为公司创造价值,是当前业务的重要组成部分。 - 对于某些人来说,代码中的“错误”可能是另一个团队的关键功能。 #### 2. **遗产代码的挑战** - 开发人员更迭、功能增删改、最佳实践和技术语言的更新,导致代码难以维护。 - 新开发人员可能对项目结构和背景缺乏深入了解。 - 支持工具的更新也可能增加维护难度。 #### 3. **演讲目标** - **保持代码运行**:确保现有功能正常。 - **引入测试**:通过测试增强代码的可靠性和可维护性。 - **逐步改进**:避免大规模重构,采取小步快跑的方式优化代码。 - **自文档化代码**:让代码本身清晰地传达其功能和设计。 - **建立对变更的信心**:通过测试和清晰的文档,减少对代码修改的担忧。 - **开发维护测试**:减少开发时间、降低现场缺陷、降低项目全生命周期成本。 #### 4. **资源推荐** - 《Working Effectively with Legacy Code》(Michael C. Feathers) - 《Test-Driven Development for Embedded C》 - 谷歌软件工程团队的《Lessons Learned from Programming Over Time》 #### 5. **测试的成本与意义** - 测试是维护和改进遗产代码的关键工具,尽管初期投入成本较高,但长期来看可以显著降低缺陷和维护成本。 #### 6. **开发者的责任与职业素养** - 开发者需对自己的代码修改负责,保持专业态度。 - 每个决策都需要判断力,维护代码是一个持续的过程,没有终点。 总结:遗产代码是企业的重要资产,尽管面临挑战,但通过引入测试、逐步改进和注重代码可维护性,可以提升代码质量并建立对变更的信心。
P1
P2
P3
P4
P5
P6
P7
P8
P9
P10
P11
P12
下载文档到本地,方便使用
- 可预览页数已用完,剩余 102 页请下载阅读 -
文档评分
请文明评论,理性发言.