PROMPT.STUDIO
Back to gallery
Code Refactoring and Analysis, People, nanoBanana-Pro, Code Refactoring, Software Structure reference image

Code Refactoring and Analysis

Author: Javi Lopez ⛩️Model: nanoBanana-ProPublished: 2/4/2026, 5:59:45 PM

Categories

Copy prompt

Halfway through the process, when the initial file was getting way too many lines, I told it: Prompt: "Ok, let's refactor a bit before we continue. Review it to: - avoid redundant or dead code - refactor wherever you think it's necessary - and ABOVE ALL, split that file with a ton of lines into smaller, more manageable files, multiple files that actually make sense FIRST STUDY THE WHOLE CASE BEFORE YOU START DOING IT. Tell me what you have in mind, and then I'll say OK, GO AHEAD." And this was VITAL to keep the code clean, structured, and manageable. Plus, each iteration became faster this way, because a lot of the time the models start rewriting code instead of just inserting a line.

Prompt breakdown

Subject

Code Refactoring and Analysis

Scene

People

Style and lighting

nanoBanana-Pro

Details to preserve

Halfway through the process, when the initial file was getting way too many lines, I told it: Prompt: "Ok, let's refact...

Recommended next steps

Open in generator
  • Open this prompt in the generator and rewrite it around a new subject or scene.
  • Use the tags below to keep browsing prompts with a similar style direction.
  • Check the related category page for more prompts that fit the same use case.
Open on X

Related prompts

Open in generator