Reading Other People's Code

Published 12-21-2017

Please make your self comfortable to read other people’s code, because it is going to be your daily life as a programmer. Make it as the journer to the wonderful land, and take your time don’t rush and understand and try it out.

Maybe this is sounds ridiculous if I say reading other people’s code is fun, in fact it is hard to read the code that written by other. Not to mention if the writter is not an experience one and just rush to make it work, yup it is worst and a nightmare.

What to do and solve this problem ? of course by reading the code.

Steps how to read other’s people code

  • Go to github.com and search for opensource project and read the code and understand it, by understand I mean really understand why it wrote that way ?
  • Write unit test
  • Refactoring - for your old project or opensource project
  • Read books about programming refacting I recommend the book of Refactoring - Improving the design of existing code and one of the writter is Martin Fowler.

This skill needs to be develop over time, and this will vary depend the individual. I am also not consider my self as a good one, because there are sometime I got confused and say what the fuck is this ??. The key point is be patient wrote a lot of simple program with the language that you working on and you will be surprised when it reading other people’s code is fun, and yes this is one of the most curcial skill you need to have in the industry.

final Steps

What are you waiting for anymore ? go and do the steps above :). Hopefully this would give you a little help. Happy Coding.