108
you are viewing a single comment's thread
view the rest of the comments
[-] ExLisper@lemmy.curiana.net 4 points 23 hours ago

I use LLMs mainly for "editing text". Like if I have to refactor 100 lines of code and it can't be easily done with a regexp replace I will use LLM to do it. When I have to actually modify some logic I find it easier and faster to just do it than to explain what needs to be done to a LLM and carefully check its response for subtle bugs.

[-] Mikina@programming.dev 1 points 5 hours ago

Maybe I'm misunderstanding, but are you saying that you use LLMs as refactoring tools, so things like to move code around, rename stuff, extract functions, and make changes that don't change the logic?

Or is it something else? Because as far as I know, LLMs are pretty bad at not making random changes, even if told to just reorder stuff, plus we have a lot of deterministic tools for that job, so I guess you probably mean something else. Honest question.

[-] ExLisper@lemmy.curiana.net 1 points 3 hours ago

Sometimes refactoring tools are not enough and you have to do the same change in couple of places. Boring, repetitive work. For example last thing I did is that I refactored some code and I had to change the way objects used in tests are initialized. Basically couple hundred lines of just constructors and setters. I knew exactly what needs to be created because tests where there so I feed the expected structure into a LLM and it generated the code. Saved me some boring work and I didn't have to worry about mistakes because compiler and tests would pick it up.

this post was submitted on 30 Dec 2025
108 points (99.1% liked)

Programming

24146 readers
759 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 2 years ago
MODERATORS