BrowsePrompt

More in this categoryCoding Prompts

11 / 12

2-phase workflowFeatured

Function Draft to Production-Ready

Draft a working function, then harden it for production.

Published · Updated

Function Draft to Production-Ready

Workflow · 2 phases

  1. Phase 1: Phase 1 — Function draft

    Write a [LANGUAGE] function that [DESCRIBE TASK, e.g. fetches user data from an API and caches it]. Keep it simple and readable first — just make it work.
  2. Phase 2: Phase 2 — Error handling

    Now harden that function for production: add try/catch error handling, input validation, timeout handling, retry logic with exponential backoff, and logging. Explain each addition with a one-line comment.
  • 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
  • Coding Prompts

    Landing Page in HTML/CSS

    A complete responsive landing page in one file.

    • Replit AI
    By Sofia Carter