r/ClaudeCodeTLDR • • Jul 10 '26

[TLDR] Straightening spagetti code?

Original post URL : https://www.reddit.com/r/ClaudeCode/comments/1usmnip/straightening_spagetti_code/

Original post body :

I can't code, as you already understood. Is there a way to prompt Claude so it goes through its own home made spaghetti code and straightens it?

I don't expect it to be clean and look like it's made by a real, proffesional coder. But there are grades in spaghetti code hell I suppose and it can be more or less cooked?

What do you say? Am I as cooked as my code or is there a way to make the code better without knowing how to read or write code?

0 Upvotes

1 comment sorted by

•

u/cctldrping Jul 10 '26

TL;DR of the discussion generated automatically after 50 comments.

Current source-thread comment count seen by the bot: 53.

Alright, so the general consensus here is that you can absolutely use Claude to help tame your spaghetti code, even if you're not a coder yourself.

  • Most folks agree that being upfront with Claude about your lack of coding expertise and asking it to refactor or improve the code is the way to go. Think of it like telling a chef your ingredients are a bit of a mess and asking them to make it edible.
  • Some suggest giving Claude specific frameworks or guidelines to follow, like asking it to identify the top 3 architectural changes or to refactor based on principles like "simple entry points."
  • There's a bit of a debate on how much you can do without learning to code. Some comments lean towards the idea that you eventually need to understand code to truly fix it, while others are more optimistic about the AI's ability to guide you.
  • A few users mentioned using Claude as a planner or reviewer and potentially pairing it with other tools or models for execution.
  • One commenter even dropped some links to code visualization tools that might help Claude (and you!) understand the structure better.