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.
On society, politics, religion, economics and many other topics that just do not matter.
Subscribe to:
Post Comments (Atom)
Gandhi again...
(Have you read my earlier blog on Gandhi ?) The corporate world and my years administering a resident welfare association taught me a crucia...
-
Anti-fragile எனும் ஆயிரங்காலத்துப் பயிர் தமிழ் மொழிபெயர்ப்பில் உள்ள சிரமங்களையும் சிக்கலான சிந்தனைகளை எப்படி தமிழில் விளக்குவது என்ற ஆலோசனை...
-
சில வரலாறு தொடர்பான புத்தகங்களை மொழிபெயர்க்க வாய்ப்பு கிடைத்தது. அதின் மூலம் வெகுஜனங்களைக் குறி வைத்து எழுதப்படும் வரலாறு பற்றி புரிந்தது. வ...
-
A recent incident in my apartment complex highlighted a concerning disparity: businessmen seem to operate under a different set of rules. Wh...
No comments:
Post a Comment