3 ms·
> Before Hound, most engineers used ack or grep to search code, …meanwhile, programmers used actual code searching tools like GLOBAL, cscope or ctags to "searc
by johncoltrane 12y ago
> Before Hound, most engineers used ack or grep to search code,
…meanwhile, programmers used actual code searching tools like GLOBAL, cscope or ctags to "search code".
- lstamour 12y agoCool alternatives. Also git grep if in a repo, it's quite fast: http://git-scm.com/docs/git-grep http://git-scm.com/docs/git-grep But hey, this has a web interface. Might be useful for documentation or less technical users too. I'll have to try it sometime.
- comex 12y agoI use cscope extensively, but it serves a quite different purpose from grep. It's good at jumping to definitions and references for a specific symbol (although C++ support is miserable; AFAIK the other tools you listed are similar), but grep's required if you need more structure/context, if you're searching comments or don't know exactly what something is called, etc.
- johncoltrane 12y agoYes, that's exactly my point. Use cscope and co for searching code and grep and co for searching text.
- taeric 12y agoI've gotten used to GLOBAL. Basically a nicer version of cscope, from my memories of it. Some of that could just be a better emacs mode, though. It is funny, because I can not deny that there are more powerful ways of doing searches on source code. However, I think there is a beautiful thing about code that is easily greppable.