Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Everybody says, "to be a better programmer you have to learn to read other people's code ". I started working on some open source c# projects from github but each time i really don't get how to get started. Where should i start to read the code ? What is the proper way of reading other people's code ?

So i need some books or tutorials (if there are any) that explains the code of some open source source projects.

I may not be the only one who stuck on this problem, i am sure there are many like me. So how do they do it ?

Any kind of help and suggestions are helpful..
Posted
Comments
F-ES Sitecore 6-Oct-15 8:30am    
Not sure who told you that but I don't think reading other people's code is necessarily a good way to start. It might influence you one way or another and until you usually need a very good grasp of code to read other people's as you have to be able to run it "in your head" to work out what it's doing, as their coding style\decisions may differ from yours.

I agree with F-ES. Don't worry about reading other people's code. When I started out, the code I would see was in technical demonstrations and I did learn some good techniques watching those.

However, the best way to become a better programmer is to keep getting more and more experience.
 
Share this answer
 
Yes, I agree with you most of them are struggling with;

where they need to start.? and how to start.?

The simple answer is split up your project in to small small modules and note down all that in one notepad and start to implement from small module.

Req: Assume that you have a requirement to show employee details based on department selection;

You need split this into several parts,
1) Need to get department details
2) Bind employee details based on department selection

first we need to get department details and we need to store those into some control, you need to decide which control that is, usually we are using dropdown control, then bind department details into dropdown for that what you need..?

You need to open database connection and get data from database and assign that into dropdown.

After Bind data into dropdown, what is your next step bind employee details based on dropdown selection(dept selection), so which event will be useful in this scenario "OnSelectedIndexChanged" event of dropdown so rebind your grid onselectedindexchanged event of dropdown.

Instead of reading reading.. start to implement project, by the way you can able to learn more.

while implement project you want to know more at that time you should learn some articles from Google.

This is my personal experience..
 
Share this answer
 

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