BrowsePrompt

More in this categoryCoding Prompts

10 / 12

Coding prompt

Refactor Legacy Function

Clean up legacy code without breaking behavior.

Published · Updated

Refactor Legacy Function
  1. Refactor prompt

    Refactor this legacy function for readability and performance WITHOUT changing its behavior. Apply: meaningful variable names, extract helper functions, remove duplication, and modern [LANGUAGE] idioms. Show a before/after diff summary of what changed and why. Code: [PASTE CODE]
  • Coding Prompts2 phases

    Legacy Code Modernization

    Analyze legacy risks, then modernize safely.

    • Amazon Q Developer
    By Rahul Verma
  • Coding Prompts

    AWS Lambda Handler

    Production-ready Lambda with IAM and logging.

    • Amazon Q Developer
    By Priya Sharma
  • Coding Prompts2 phases

    Prototype to Deployment

    Prototype fast, then deploy right with a checklist.

    • Replit AI
    By Sofia Carter