Re:The Future's Pretty Cool, or Why I Love Ruby
by steveklabnik on Wednesday April 28, 2010 @02:44PM
(#1302326)
> Because of open classes and code generation in general,
Gotcha. Makes lots of sense. I've just not been bitten by this yet, I guess.
> use that tool's built-in functionality to "Go to" the declaration.
Ah, I'd never run into this too, because I default to just going to a browser and going to the online docs. But if you're used to another workflow, I can see how that'd be a pain.
In one specific example, we had a bug in moving an app to 2.3 in which three different gems contributed. It was very tough to nail down.
Aside from all that, pop open your favorite editor or IDE, find a method you're interested in learning more about (let's say, for refactoring), and try to use that tool's built-in functionality to "Go to" the declaration. 6 out of 10 times I bet it fails to get you there. I have tried with RubyMine, NetBeans, Aptana, and Vim, and each of them fail to find anything more complex than simple method declarations. Ruby is just a hard language to navigate.