Tips for reading other person's code

Tips for reading other person's code

More from a maintenance guy's experience.

1. Concentrate on code and take the comments with a pinch of salt. Often you will encounter comments that were not updated when code got updated.
2. Try writing down your understanding of the code, taking one chunk at a time. A chunk typically consists of a program construct like if...else block, or a loop or a function. This way you can reconstruct the algorithm, especially if the code wasn't structured.

Comments

Kaushik said…
Very True!! and is a piece of knowledge that is evergreen.

Popular posts from this blog

What does lineage stand for?

Deepak Amin's article that inspired many to return to India

Coping up with the shaken-up faith