C/C++ Learning C++ by reading the code of open source projects?

AI Thread Summary
Learning C++ through open source projects, particularly advanced ones like Quake 3, can be challenging for beginners. While understanding the syntax and basic logic is essential, diving into complex code without a solid foundation may lead to confusion and hinder learning. Advanced projects often employ sophisticated solutions and unconventional methods that may not effectively teach fundamental coding techniques. It is suggested that beginners first focus on grasping basic concepts before attempting to analyze open source code, as this approach can provide a more structured and beneficial learning experience.
zahero_2007
Messages
75
Reaction score
0
learning C++ by reading the code of open source projects?

Is there any resource that teaches C++ by taking an open source project (at the level of quake 3 for example)and explains the code step by step for some one who only knows the very basics . In my opinion It will be very efficient . I can understand the syntax and some logic to some extent but I want a step by step explanation because it is difficult for me to follow the complex code.
 
Last edited:
Technology news on Phys.org


Personal opinion:

I don't think it would make sense. Advanced projects often use advanced solutions and unorthodox approaches that will be hard to follow for a beginner, and won't necessarily teach good general coding techniques. Analysis of such code in the advanced C++ course can be an interesting idea.
 


I agree with Borek. Once you have the basic concepts firmly in hand, then it might make some sense to look at an open source project of some kind.
 


+1 on both of the above ... very bad idea
 
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I had a Microsoft Technical interview this past Friday, the question I was asked was this : How do you find the middle value for a dataset that is too big to fit in RAM? I was not able to figure this out during the interview, but I have been look in this all weekend and I read something online that said it can be done at O(N) using something called the counting sort histogram algorithm ( I did not learn that in my advanced data structures and algorithms class). I have watched some youtube...
Back
Top