Click here to Skip to main content
15,917,005 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
hi, 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?
Posted
Updated 2-Mar-16 7:52am

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.
 
Share this answer
 
Comments
Patrice T 2-Mar-16 13:53pm    
+5
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.
 
Share this answer
 
Comments
Patrice T 2-Mar-16 13:52pm    
+5
stackprogramer 2-Mar-16 14:27pm    
thanks
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.
 
Share this answer
 
v2
Comments
stackprogramer 2-Mar-16 14:26pm    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900