I made 4 Java games through my 6 months being a hobbyist game programmer. Before this hobby, I programmed 2 years in Java and a semester worth in Visual Basic and basic C++.
I never thought to practice reading other people's code until now. So when I decided to do so, I found myself unable to make sense of their code.
There seems to be five reasons why.
1) The code is structured very differently than how I would have coded.
2) They used some syntax I never used before.
3) No comments.
4) Code is using concepts and techniques I never used before.
5) Magic numbers
I'm reading an platformer engine coded by someone after having coded a simple arcade shooter game all by myself.
I tried to read Notch's Mario Source code and the way he wrote his codebase is out of this world. His codebase looks very extreme.
I need feedback on how I should practice reading their code.
Edited by warnexus, 19 October 2013 - 09:06 PM.