https://news.ycombinator.com/item?id=30819579
Why do we need to search source-code?
- Quickly learn the domain and context of the application
- After adding a feature, we should aware if we broke anything (assume you work with code that doesn't have test-case), it helps even to search testcases
- Find similar code and ensure you are improving quality of the overall similar code (not just fixing current bug)
- Understand how application behaves when there are production issues.
Below is my steps.
- Read the relevant code, and know certain domain keyword, variable names (inclusive class/method/function)
- Use the bitbucket/GitHub/git search
- Use the grep
- Use the git-grep
- OpenGrok