4 ms·
How is grep not solving this problem ? I've met this pattern across many codebases but a simple call to grep (or equivalent) usually answers those questions pre
by lta 2y ago
How is grep not solving this problem ?
I've met this pattern across many codebases but a simple call to grep (or equivalent) usually answers those questions pretty quickly
- seattle_spring 2y agogrep doesn't help much when the codebase is full of subclasses that implement the same generically named method of some uber-super-class.
- rezonant 2y agoI assume (since such practice is fairly common in Ruby metaprogramming) that the methods are generated at runtime, so there is nothing to grep.
- qudat 2y agoFirst, you cannot grep when the function is generated at runtime. Second, what happens when the code is in a different repo and there are zero imports so you have no clue where it’s getting loaded from? We’ve got multiple gems and microservices so I can’t even grep one codebase, I basically have to grep our entire gh org to find the function because ruby has terrible tooling to help with “go to definition”.