阅读软件源代码 [英] Reading software source code

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

问题描述

伙计们!



我需要网站或资料,我可以阅读和编译源代码。我喜欢阅读代码,我相信这是一个很好的做法,并且会增加我的知识价值。



我尝试了什么:



互联网上的资料,但我仍然失败。

Folks!

I need sites or materials where I can read and comprender Source Code. I love reading code, I believe it is a good practice, and will add value to my knowledge.

What I have tried:

Materials on the internet, however I still fail.

推荐答案

Quote:

我需要网站或材料,我可以阅读和编译源代码。我喜欢阅读代码,我相信这是一个很好的实践,并且会增加我的知识。

I need sites or materials where I can read and comprender Source Code. I love reading code, I believe it is a good practice, and will add value to my knowledge.

在CodeProject中,你会发现成千上万的关于编程的文章。



但是我不建议通过阅读代码来学习。

你应该宁愿:

- 通过阅读文档和跟随tutos来学习语言(尽可能多。)

- 谷歌是你的朋友。

- 滥用调试器看看代码在做什么一步一步,它会让你对正在发生的事情有一个宝贵的了解,检查变量。

- Master 布尔代数,它无处不在,每次测试时都会使用布尔代数。

- 掌握一些分析方法, Dijkstra自上而下方法是一个好的开始。

https://en.wikipedia.org/wiki/Top-down_and_bottom-up_design [ ^ ]

https://en.wikipedia.org/wiki/Structured_programming [ ^ ]

https://en.wikipedia.org/wiki/Edsger_W._Dijkstra [ ^ ]

https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316。 PDF [ ^ ]



记住练习和小项目不是为了让你有用,他们在这里教你编程。

In CodeProject you will find thousands of articles about programming in a way or another.

But I do not recommend to learn by reading code.
You should rather:
- Learn the language by reading the documentation and following tutos (as much as you can).
- Google is your friend.
- Abuse of Debugger to see what the code is doing step by step, it gives you an invaluable understanding of what is going on, inspect variables.
- Master Boolean Algebra, it is ubiquitous, Every time you test something, you use Boolean algebra.
- Master some analyse methods, Dijkstra Top-Down method is a good start.
https://en.wikipedia.org/wiki/Top-down_and_bottom-up_design[^]
https://en.wikipedia.org/wiki/Structured_programming[^]
https://en.wikipedia.org/wiki/Edsger_W._Dijkstra[^]
https://www.cs.utexas.edu/users/EWD/ewd03xx/EWD316.PDF[^]

Remember the exercises and little projects are not here to make something useful, they are here to teach you programming.


还有更好的做法:编写代码。当你想要将你的工作质量与其他人的工作进行比较时,阅读代码会更有用。



问题没有多大意义。 1)有很多开源产品。 2)没有一些声音目标的阅读代码是没有意义的。如果你没有这个目标,你就什么都学不到。



-SA
There is even better practice: writing code. Reading code is more useful when you want to compare quality of your work with work of other people.

The question makes little sense. 1) There is a lot of open-source products. 2) Reading code without some sound goal is pointless. If you don't have this goal, you don't really learn anything.

—SA


这篇关于阅读软件源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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