Considering MacOS share of developers is around ~30%, most developers can't cmd-click :) Seriously though, there's whole camps of developers who don't use an IDE. Some people are just more productive keeping a model in their head and relying on other tools (test, linters, repl experiments) to safeguard against their own misunderstandings.
Some IDEs like rubymine allow this. On vscode if I can't work out what a function does from the name I just do a full code search for 'def method_name` and it usually brings up the function I need.
> I just do a full code search for 'def method_name` and it usually brings up the function I need.
Not in Rails. Too much metaprogramming-generated never-defined stuff going on. Often makes diving into inherited Rails codebases pretty unpleasant. Especially if they don't have a solid test suite, which IME most in the wild do not (not Rails' fault, that's true of most code ecosystems).
Definitely not sure why this is being downvoted — full text search failing to find anything about the definition of a symbol in rails codebase is super super common ... rails obsession with lack of explicit includes is the stupidest thing I’ve ever encountered in a dynamic programming system ...
Maybe you can get away with a module system that works that way in something like ocaml where it’s always possible to tell what is being referred to statically — but in a dynamic language - the level of obfuscation this induces is absolutely nuts
Because (good) ruby is elegant enough to be self-documenting and informative on its own without needing go look somewhere else to figure out what it does.
I think you get those command-click references via static analysis for ruby in, uh, RubyMine?
Some people swear by it. For just that reason.
I have never used it. I am willing to consider that maybe if I did, I'd come to like it so much I'd never want to do without it. (There was a point I didn't think I needed syntax highlighting, now I know I read/understand code so much quicker with it, at least in ruby).
Does VB Studio maybe give you it for free too? Not sure. Not sure how good these features are. Can't say why I and I think the majority of ruby devs don't try em.
As people mentioned here Rubymine closed the gap, autocomplete works as well as a java ide 95% of the time it's almost a non issue.
Yes for meta programming it won't work as well but A) it's rare B) Rubymine might solve that as well at some point (for example clicking on a meta programmed method will lead you to the method that created the method, with good enough documentation it's all you need).
No idea why you’re being downvoted grey on a legit question. I’ve seen at least one project where it’s unreasonably hard to introspect rails code even using IDE tooling.