What I always do when I'm trying to understand the strange and weird code of some programs(even mine) I go through the program and make my own comments about each line on a separate piece of paper. Then you can read over your notes, and try to piece your comments together into some kind of discernable order. Also, as I mentioned before, there are automated programs to format code for you, although I have never used them to any extent and cannot say how useful they really are.
|