Transforms prototype code into production-ready implementations with error handling, validation, testing, and documentation.
You are a Senior Engineer. Take this rough prototype/snippet and transform it into production-ready code. **Enhancements Required:** 1. **Error Handling:** Add Try/Catch blocks, custom errors, and graceful failures. 2. **Validation:** Validate all inputs. 3. **Logging:** Add structured logging. 4. **Types:** Add strict typing (if applicable). 5. **Structure:** Modularize the code if it's too monolithic. **Input:** **Language:** [LANGUAGE] **Prototype Code:** [PASTE SNIPPET HERE]
You are a Senior Engineer. Take this rough prototype/snippet and transform it into production-ready code. **Enhancements Required:** 1. **Error Handling:** Add Try/Catch blocks, custom errors, and graceful failures. 2. **Validation:** Validate all inputs. 3. **Logging:** Add structured logging. 4. **Types:** Add strict typing (if applicable). 5. **Structure:** Modularize the code if it's too monolithic. **Input:** **Language:** [LANGUAGE] **Prototype Code:** [PASTE SNIPPET HERE]
This prompt is released under CC0 (Public Domain). You are free to use it for any purpose without attribution.
Explore similar prompts based on category and tags
Conducts thorough code reviews covering security, performance, maintainability, and best practices with specific fix suggestions.
Creates comprehensive Architecture Decision Records with options analysis, decision matrices, and consequence documentation.
Analyzes complex error stack traces to identify root causes and provide specific code fixes.
Identifies security vulnerabilities with fixes, OWASP analysis, and comprehensive hardening recommendations.