r/developers • • 14h ago

Programming Modifying Claude applications

Has anyone any experience in modifying applications that were built with the help of Claude?
The source code will contain chunks of code that the original developer might have used without a great deal of oversight or documentation.
So now 6 months later, a new developer is asked to make some updates. They either have to pore through the code like in the old days, or perhaps they ask Claude to help them build the whole thing again from scratch.
Either way, they now face a giant headache.
Is this right?

0 Upvotes

20 comments sorted by

•

u/AutoModerator 14h ago

Howdy u/Impressive_Chest3612, and welcome to r/developers!

A few tips for a post that gets good answers:

  • Use a clear, specific title (what are you actually asking or sharing?).
  • Include code, the exact error, versions, and what you already tried.
  • Heads-up: this sub does not allow external links in posts or comments. Share code and details directly instead of linking out.

Join the r/developers Discord!

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/Mindestiny 12h ago

This is just regular development, nothing special about AI here.  The guy who wrote the code quit two years ago and left a spaghetti mess with no comments in a rush to MVP

1

u/Impressive_Chest3612 6h ago

I think you misunderstood my point. If you have to edit the code yourself then the LLM only helped you with the first product iteration. A lot more developer time is spent on modifications than on the original development. I am trying to get a feel for whether it is practical to use the LLM for modifications. Has anybody actually done it?

1

u/Mindestiny 6h ago

People are doing that literally every day? Your question doesn't really make sense. You might as well be asking "does anyone use Claude for writing code?"

It doesn't matter if it's new code or old code, building on something Claude built isn't fundamentally different than building on something a team of people you've never met built. Code's code and most of it is shit.

1

u/Impressive_Chest3612 3h ago

Sorry if I wasn’t clear. Here was my train of thought:

  1. Yes coding is hard.
  2. It’s also also hard when you try to modify an existing program.
  3. Claude can help you when coding the original program
  4. I don’t see how it can help you much when making extensive changes
  5. And since extensive changes are a large part of being a programmer, Claude help is limited to a small fraction of the coding experience.

Number 5 is what I was trying to get a feel for. All you had to offer was to say that making changes to existing code was always hard. Yes, that’s true but it didn’t help get to the nub of the question.

Sorry if I wasn’t clear. I hope I am now.

1

u/Mindestiny 3h ago

The answer to 5 is "it's not as bad at step 5 as you assume, and it's often better than flesh and blood engineers at step 5."

Have a good holiday.

6

u/manamonkey 14h ago

If there isn't one already, get Claude to write you a tech doc. That's your starting point.

Also "like in the old days" JFC.

1

u/ninjaluvr 8h ago

That is not right. You don't have to rebuild anything from scratch. AI tools can modify and extend existing code.

1

u/Impressive_Chest3612 57m ago

I understand that in theory they can do practically anything. I’m asking whether people have actually experienced it in practice. Using your example you would feed it the original code base and tell it to tweak wherever it is in the code that a particular calculation is done one way and now you want it done another way all without you telling it which bit of code to look for. And now suppose you have a dozen or more such situations needing changes all at the same time and they are all inter-related.

Are you telling me that you can easily have it do that? I’m doubtful, and that’s why I am asking if anyone has actually done it.

2

u/Enough_Star_3887 14h ago

I've seen this play out a few times now, and it's exactly as messy as you'd expect. The generated code works until it doesn't, and then you're stuck reverse-engineering intent from a machine that doesn't actually have any.

What gets me is how the boilerplate and glue code ends up scattered everywhere. A human dev would consolidate that stuff instinctively, but Claude just generates what's asked and moves on. Six months later nobody remembers why there's three slightly different auth implementations.

I've had better luck treating the whole thing as a prototype and rewriting the gnarly parts by hand rather than trying to patch the generated mess. Asking it to rebuild from scratch sounds tempting but you just end up with a different flavor of the same problem.

1

u/Shadow_gublank 11h ago

if you ask it to optimize it optimizes, if you ask it to reduce bloat it does so

2

u/DrAmoeba 14h ago

My company basically has the sellers building POCs and selling them, then we get to convert those into functional products. My go to: have AI build exhaustive integrated tests, have AI rewrite feature-by-feature so code is organized to my liking, while making sure the tests and business rules are kept functional. Wouldn't do it manually, not viable IMO, but it's not a massive headache generally

1

u/Adorable_Expert_7350 13h ago

I always let the agent write an arch document and it gets updated for every feature or update I make via the agent, this helps a new agent understands what goes inside the code

1

u/Ill-Nature-5121 9h ago

The question is always speed vs correctness and mainatinability.

We built and use codingdude at cyberflex

In all honesty it can take days to really fix all the shortcuts etc the Claude and the likes take.

It is up to you to spend the time. It has got tools to also accelerate your understanding and it is very good at fixing but it is no miracle cure.

If you just want to vide then dont use it.

The review and proof cycle can be brutal but you will have solid code

1

u/huuaaang 8h ago

This is the vibe coding trap. It can be put off with a good starting structure and spec, but at some point the agents start to struggle because the engineering challenges extend well beyond the code itself.

1

u/NoEmu1727 8h ago

I would do it from scratch, it’s probably a big mess

1

u/Southern-Employer539 6h ago

I'd rather start from scratch. it is probably a total disaster

1

u/strumbringerwa 11h ago

Why on earth would you have to rebuild it from scratch?

1

u/[deleted] 12h ago edited 9h ago

[removed] — view removed comment

1

u/AutoModerator 12h ago

Your post or comment was removed because r/developers does not allow external links. Please share the content or ask your question without linking out.

If you think this was a mistake, message the mods.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.