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

Click For Summary

Discussion Overview

The discussion centers around the idea of learning C++ by reading the code of open source projects, specifically questioning whether resources exist that provide step-by-step explanations of such code for beginners with only basic knowledge of the language.

Discussion Character

  • Debate/contested, Conceptual clarification

Main Points Raised

  • One participant suggests that learning C++ through open source projects could be efficient, as it allows for understanding syntax and logic in context.
  • Another participant argues that advanced projects may employ complex and unorthodox solutions that could confuse beginners, potentially hindering the learning of good coding techniques.
  • A third participant agrees with the previous point, indicating that it might be more beneficial to explore open source projects only after grasping basic concepts.
  • A fourth participant reinforces the sentiment that pursuing this approach at a beginner level is not advisable.

Areas of Agreement / Disagreement

Participants generally agree that learning from advanced open source projects may not be suitable for beginners, with multiple views expressed regarding the appropriateness of this method at different stages of learning.

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
 

Similar threads

  • · Replies 40 ·
2
Replies
40
Views
2K
  • · Replies 16 ·
Replies
16
Views
5K
  • · Replies 29 ·
Replies
29
Views
8K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
7K
Replies
4
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 4 ·
Replies
4
Views
7K