[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[semi off topic] grep-based refactoring [was: Adding refactoring capabil
From: |
tomas |
Subject: |
[semi off topic] grep-based refactoring [was: Adding refactoring capabilities to Emacs] |
Date: |
Fri, 8 Sep 2023 15:30:29 +0200 |
On Fri, Sep 08, 2023 at 01:52:53PM +0100, João Távora wrote:
[...]
> Great. Precise project-wide analysis (as opposed to more-or-less dumb
> grep-based) is exactly the main thing we should be targeting IMO.
> Is "rename" the only thing it does or can you, say, extract subexpressions
> to variables, organize imports, etc?
As someone who has done quite a bit of "grep based refactoring", one
observation: of course, this can only me made semi-manually. But then,
the process has found things for me a syntax based refactoring tool
wouldn't ever have, like a variable name's mention in a comment (or
docstring, or even more insidious: possibly temporarily un-commented
code!) where I went "oh, yes, I want to change that too".
Food for thought.
Cheers
--
t
signature.asc
Description: PGP signature
Re: Adding refactoring capabilities to Emacs, Dmitry Gutov, 2023/09/07
Re: Adding refactoring capabilities to Emacs, Eshel Yaron, 2023/09/08
- Re: Adding refactoring capabilities to Emacs, João Távora, 2023/09/08
- Re: Adding refactoring capabilities to Emacs, Eshel Yaron, 2023/09/08
- [semi off topic] grep-based refactoring [was: Adding refactoring capabilities to Emacs],
tomas <=
- Re: [semi off topic] grep-based refactoring [was: Adding refactoring capabilities to Emacs], João Távora, 2023/09/08
- Re: [semi off topic] grep-based refactoring [was: Adding refactoring capabilities to Emacs], Dmitry Gutov, 2023/09/08
- Re: [semi off topic] grep-based refactoring [was: Adding refactoring capabilities to Emacs], tomas, 2023/09/08