3 ms·
Refactoring is anything that simplifies the code and prepares it for modification. For example, extracting a function, or a variable; pulling code up to the su
by projektfu 4y ago
Refactoring is anything that simplifies the code and prepares it for modification. For example, extracting a function, or a variable; pulling code up to the superclass because it's common or pushing it down to subclasses because it shouldn't be common; etc. Renaming is a part of refactoring but most refactorings involve code motion.
KEdit sounds pretty scriptable, but it seems limited by treating everything as text and not being aware of syntax.
I do most of my work myself in Emacs without much of the "heavyweight" stuff. Nonetheless, for writing Java or exploring a large program, an editor that has already grokked and indexed everything is really useful. As an example, I can point to a name and go to its definition immediately, without running a more generic search. Then I can enumerate its uses and see what the idiomatic use is.
Not trying to convince you to use something else, just giving you an idea why people like these tools.
- graycat 4y agoI do a little with objects but not a lot. Doubt that I ever wanted to refactor some! Yes, some of my code editing, revisions involved code motion, but I don't recall that was a big problem. > KEdit sounds pretty scriptable, but it seems limited by treating everything as text and not being aware of syntax. Right. To have KEdit honor syntax, would have to program that in the KEdit macro language. No doubt that is doable, and since the macro language has a lot on string handling quite doable. Doable but for me more work than worthwhile. KEdit is old but so is Emacs. > Not trying to convince you to use something else, just giving you an idea why people like these tools. Thanks, I've been wondering what I'm missing not using Emacs. For an IDE, once I looked at Microsoft's Visual Studio. Created a project or whatever it was called -- years ago. It created a directory with lots of files. And that was before even "Hello World". I didn't know what all those files were for, didn't want to go to the trouble to find out, and was concerned that if something went wrong I'd have to fix it. I gave up, but here with the start of this thread wondered what value I might be missing from some heavy computing busy trying to make my work easier -- what was it, 12 cores, 64 GB of main memory, gads? So, for now, stay with KEdit and Rexx. I could have wasted time evaluating IDEs. Thanks!