熟悉继承的代码库的最佳方法 [英] The best way to familiarize yourself with an inherited codebase

查看:101
本文介绍了熟悉继承的代码库的最佳方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Stacker没有人问到新程序员发现的最令人震惊的事情当他们进入字段.

Stacker Nobody asked about the most shocking thing new programmers find as they enter the field.

继承最重要的是继承一个必须迅速熟悉的代码库的影响.突然发现自己负责维护已经被淹没的N行代码(对于谁知道会持续多久,又有很短的时间开始对此做出贡献),可能会感到非常震惊.

Very high on the list, is the impact of inheriting a codebase with which one must rapidly become acquainted. It can be quite a shock to suddenly find yourself charged with maintaining N lines of code that has been clobbered together for who knows how long, and to have a short time in which to start contributing to it.

您如何有效吸收所有这些新数据?是什么减轻了这种过渡?是唯一已经为足够多的开源项目做出贡献的真正解决方案了吗?

How do you efficiently absorb all this new data? What eases this transition? Is the only real solution to have already contributed to enough open-source projects that the shock wears off?

这也适用于资深程序员.您使用什么技术来简化向新代码库的过渡?

This also applies to veteran programmers. What techniques do you use to ease the transition into a new codebase?

我在此添加了Community-Building标签,因为我也想听听有关这些过渡的一些战争故事.随时分享您如何处理特别紧张的学习曲线.

I added the Community-Building tag to this because I'd also like to hear some war-stories about these transitions. Feel free to share how you handled a particularly stressful learning curve.

推荐答案

铅笔&笔记本(尝试创建不需要的解决方案时不要分心)

Pencil & Notebook ( don't get distracted trying to create a unrequested solution)

  • 边走边做笔记,每个星期一花一个小时阅读并整理前几周的笔记

  • Make notes as you go and take an hour every monday to read thru and arrange the notes from previous weeks

使用大型代码库可能会产生第一印象,而当您熟悉自己时,问题往往会迅速重新安排自己.

with large codebases first impressions can be deceiving and issues tend to rearrange themselves rapidly while you are familiarizing yourself.

请记住,上一个工作环境中的问题在新环境中不一定有效或与之紧密相关.提防先入为主的概念.

Remember the issues from your last work environment aren't necessarily valid or germane in your new environment. Beware of preconceived notions.

您所做的笔记/观察将帮助您快速了解要问的问题以及谁要问的问题. 希望您已经收集了所有正式(和非正式)利益相关者的姓名.

The notes/observations you make will help you learn quickly what questions to ask and of whom. Hopefully you've been gathering the names of all the official (and unofficial) stakeholders.

这篇关于熟悉继承的代码库的最佳方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆