5 ms·
What if the IDE did not traverse a specific file during the global search and replace? Are you relying on a correct and comprehensive project/workspace setup w
by arbie 7y ago
What if the IDE did not traverse a specific file during the global search and replace?
Are you relying on a correct and comprehensive project/workspace setup within the IDE?
- Sharlin 7y ago> Are you relying on a correct and comprehensive project/workspace setup within the IDE? Of course. Not much point in using an IDE otherwise.
- pavel_lishin 7y agoThen your tests catch it, and you have to fix a single file manually, instead of a dozen or a hundred or a thousand.
- ken 7y agoSure, and that’s exactly the same failure mode as “sed”. What’s the benefit of the big IDE?
- pavel_lishin 7y ago> What’s the benefit of the big IDE? To quote myself, "fix a single file manually, instead of a dozen or a hundred or a thousand". And what happens when you need to rename, say, a method name that's also used as a variable name in many places? xWhat happens if multiple classes define the same method name, but you only want to rename that method for a single class? Yes, you can probably do it in sed. If you're used to it enough, you can probably do it pretty quick, with sufficient regexps that you only have to debug a few times. Or you can right click or hit CMD-. or hit F2 or whatever with your cursor on a method name, type in the new name, wait 2 seconds, and you're done.
- this_user 7y agoSo your argument is that something might, in some extremely rare cases, go wrong, and that is why you'd rather do it the manual way? That's basically like a carpenter refusing to use power tools, because they might, theoretically, explode.
- chosenbreed37 7y ago> What if the IDE did not traverse a specific file during the global search and replace? You generally get compilation/build errors highlighting the bits that were missed (for whatever reason)
- philwelch 7y ago> Are you relying on a correct and comprehensive project/workspace setup within the IDE? That's not something I "rely" on, it's the first thing I make happen whenever I use an IDE.