什么是掌握阅读源java和c ++的最佳实践? [英] Whats the best practices for mastering in reading source java and c++?

查看:100
本文介绍了什么是掌握阅读源java和c ++的最佳实践?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的朋友,我熟悉3年或4年的java和c ++。

现在我想开始阅读源着名的项目,我开始阅读内核linux

但它非常令人发狂,这太难了。

我的问题是我可以在1年后阅读源c ++或java热门项目。我能做的最好的工作吗?

请指导我?



我的尝试:



i阅读参考书,我试着阅读但我很困惑!

任何人都可以有个好主意吗?

my friend ,i am familiar 3 or 4 year with java and c++.
now i want to start reading source famous project ,i start to read kernel linux
but it is very maddening,it is so difficult.
my question for i can be able reading source c++ or java popular project after 1 years.whats best work can i do?
please guided me?

What I have tried:

i read reference book, i try to read but i am confused!
any can a good idea?

推荐答案

这不是什么东西你可以从一本书中学习,你可以通过实践来学习。如果您没有足够的C ++或Java经验,那么您只需要学习Google将为您找到的更多教程和示例。
This is not something you can learn from a book, you learn it by doing. If you do not have enough experience in either C++ or Java, then you just need to study more tutorials and samples that Google will find for you.


如果您想要掌握 C ++ 然后Java不读取Linux内核源代码。你知道, Linux 内核只使用裸 C 编写(据我所知,即使是标准的<$ c)内核代码中不允许使用$ c> C 库)。此外, Linux 内核代码必须非常高效,而不是优雅。最后,您必须了解所面临的问题以及 OS 开发中使用的(相当高级的)技术,以便了解此类源代码。

我建议你尝试阅读和理解更简单的开源程序。
If you inntend to master C++ and Java then don't read Linux kernel sources. You know, Linux kernel is written using just bare C (as far as I know, even the standard C library is not allowed in kernel code). Moreover the Linux kernel code has to be very efficient, not elegant. Finally you have to know the problems faced up and the (rather advanced) techniques used in OS development, in order to understand such source code.
I suggest you to try reading and understanding simpler open source programs.


非专业人士很难理解C / C ++源代码。

只有经验和实践可以帮助您理解一些C代码,例如Linux内核,其中每个技巧都用于提高速度。

我建议不要阅读Linux源代码,因为以后几乎没有机会重复使用它。 />


我只能想到一件事来帮助你理解一些源代码:调试器。

使用调试器,你会看到代码正在执行和看看代码的作用通常是一个很大的帮助。
C/C++ source code are notoriously difficult to understand for non specialist.
Only experience and practice can help you to understand some C code such as Linux kernel where every trick is used to gain speed.
I suggest not reading Linux source code as there is little chances that you can reuse it later.

I can think of only one thing to help you understand some source code: the debugger.
With the debugger, you see the code executing and seeing what the code does is usually a great help.


这篇关于什么是掌握阅读源java和c ++的最佳实践?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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