Comment by lionkor
2 days ago
OpenAI engineer fails to rename references because his F2 key has been replaced with the Copilot button?
No LSP support is wild.
2 days ago
OpenAI engineer fails to rename references because his F2 key has been replaced with the Copilot button?
No LSP support is wild.
This is something I notice often when using these tools (if this is what you are referring too). Like they will grep entire code bases to search for a word rather than search by symbol. I suppose they don't care to fix these types of things as it all adds up to paid tokens in the end.
We have 50 years worth of progress on top of grep and grep is one of the worse ways to refactor a system.
Nice to see LLM companies are ignoring these teachings and speed running into disaster.
Only if they are not told how to search the codebase efficiently. All you need is an MCP server for code search. There's even LSP backed MCP servers now.
I see, I'm highly skeptical of using these tools because I honestly feel faster with a vim + clt workflow if I know what to write.
I'll have to check again because 6 months ago this stuff was pure trash and more frustrating than useful (beyond a boilerplate generate that also boils the ocean).
1 reply →
> grep is one of the worse ways to refactor Hum? care to explain this?
Using Grep or regex is textual refactoring. If you want to rename every reference to a type Foo, how do you is that without touching any variables named foo, or any classes named FooBar
The answer is use tools that have semantic info to rename things.
1 reply →
Another poster mentioned using symbols and references, another way to refactor code programmatically is to make use of code mods. Code mods are very powerful and this is a use case where I find LLMs to shine as the various syntax and language ASTs are hard to remember (even if you do understand what you're doing).