How Facebook uses code search
Facebook uses TBGS (“The Big Grep Search”, a.k.a. BigGrep) for code search. Since ~2013, it has been used daily by almost every Facebook employee who interacts with code.
In 2017, Facebook engineer Jeroen Vaelen gave a talk Searching through code at scale about how TBGS/BigGrep works and how devs use it. Here’s how Jeroen summarizes the use cases:
- Changing code
- Exploring code
- Refactoring code
- Understanding code
- Debugging code
A Facebook engineer also tweeted about TBGS:
tbgs is the StackOverflow for Facebook engineers.
— Chang Yan (@cyan_binary) July 5, 2018