Foss lect 8 1 11.txt: Difference between revisions

No edit summary
No edit summary
Line 43: Line 43:


Code Browsing tips by Abhijit Sir:
Code Browsing tips by Abhijit Sir:
1. READIT (Go through the README file).
* READIT (Go through the README file).
2. Use tools like cscope and ctags.
* Use tools like cscope and ctags.
3. Read and understand the data structure.
* Read and understand the data structure.
4. Find the mainline.
* Find the mainline.
5. 30-50% is error checking code. Ignore it for initial study.
* 30-50% is error checking code. Ignore it for initial study.
6. Many header files in large C code, often nested.
* Many header files in large C code, often nested.
7. C is being used in object oriented programming, with functions pointers heavily used.
* C is being used in object oriented programming, with functions pointers heavily used.
8. What you cant find with an automated tool, might be in a library. Try to avoid reading those internals. Go for library documentation. Or it may be in a different language.
* What you cant find with an automated tool, might be in a library. Try to avoid reading those internals. Go for library documentation. Or it may be in a different language.
9. Keep writing notes and draw diagrams of data structures.
* Keep writing notes and draw diagrams of data structures.


Hyphenation Session by Shravan:
Hyphenation Session by Shravan: