如何阅读源代码,学习如何使用大型系统? [英] How to read source code learn how to use large system?

查看:76
本文介绍了如何阅读源代码,学习如何使用大型系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设您要开始为具有数千个LOC的开源项目做贡献.我对您如何开始学习/破解新系统的方式/建议很感兴趣.

Let's say you want to start contributing to an open source project with thousands LOC. I am interesting in ways/suggestions on how you would start learning/hacking the new system.

推荐答案

跳过代码,寻找您认为自己知道发生了什么的地方.通读这些部分,以了解您的最初想法是否成立,然后尝试对其进行修改,以查看是否可以将其更改为其他用途.

Skim through the code, looking for places where you think you know what is occuring. Read through those sections to see if your initial thought holds up, and then try modifying it to see if you can change it to do something else.

我建议您以项目路线图为指导,以便随后继续发现新功能和错误修复的位置,以便以有意义的方式做出贡献.

I'd suggest that this be guided slightly by the project roadmap so you can then move on to spotting where new features and bug fixes are so you can contribute in a meaningful manner.

此外,请阅读文档以及可能存在的任何升级文档(功能规范,需求规范等).这可以进一步帮助您更快地学习代码绳:)

Also, read the documentation and any spin-up documents that may exist (functional specs, requirement specs, etc). This can further help you learn the code ropes quicker :)

这篇关于如何阅读源代码,学习如何使用大型系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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