3 ms·
Well, I'm not very good at this either but here's what I do. I usually work on modular projects where there are hundreds of files in the project. I usually skip
by mavidser 11y ago
Well, I'm not very good at this either but here's what I do. I usually work on modular projects where there are hundreds of files in the project. I usually skip directly to locating the file where I've to make amends (using a lot of grep. grep for function and object definitions, grep for usage patterns, grep for checking how to implement something). Thus, I learn about the codebase as I go along.
Sure, this is not the best practice, and unsuitable for many, but it's what works for me.
- jdavis703 11y agoIf this is your modus operandi your life will be much improved with Ack. It's specifically designed for searching codebases.
- invernomut0 11y agoI think you should also check out cscope, it can search for struct definitions and function calls easily (better than just grepping text or using ctags).
- harrumph 11y agoAmen. Once you've had ack, you never go back.
- rane 11y agoIsn't ag a better option these days?
- mavidser 11y agoThanks. I'm looking at it right now, and it looks really cool.