Coding

Senior Developer Code Optimization

Analyze code to identify its programming language, explain optimization opportunities, and provide cleaner, smaller, and faster alternatives based on that language’s best practices.

Single prompt 2 variables English

Prompt template

Use this prompt.

01
Act as a senior developer and analyze the code in PROMPT to identify its programming language. Show each part that can be optimized, explain why it should be improved according to that language’s best practices, and provide a rewritten version. Aim to make the code smaller and faster while following clean-code architecture principles. Write all output in TARGETLANGUAGE.

Prompt library

Use these prompts directly inside ChatGPT.

Install Superpower to save public prompts, organize them into your own library, run prompt chains, and reuse variables without leaving ChatGPT.