This prompt is designed to request targeted code optimization recommendations. It allows ChatGPT to focus on improving specific aspects of code, such as performance, readability, or efficiency, based on the user’s needs.
Special Note: Avoid uploading sensitive or confidential information to the AI.
Prompt Content:
Assume the role of an experienced [job role] with over 10 years of experience in [language] and strong expertise in evaluating code through thorough reviews. Review the provided [language] code and suggest optimizations that enhance [optimization focus].
<< Attach Code >>
Usage Instructions:
- [job role]: Specify the role relevant to the code, such as front-end developer, software architect, or software engineer.
- [language]: The programming language of the code, e.g., CSS, JavaScript, Python.
- [optimization focus]: Describe the areas to focus on for optimization, e.g., performance, readability, efficiency.
Example Prompt:
Assume the role of an experienced front-end developer with over 10 years of experience in CSS and strong expertise in evaluating code through thorough reviews. Review the provided CSS code and suggest optimizations that enhance performance, readability, and maintainability.
Disclaimer: You are advised to research, understand, and test these prompts and their outputs. Adjust them as needed to fit your specific requirements. Use these prompts at your own risk, as outputs may not be correct. Follow best practices when using AI, keeping in mind potential security and privacy risks. Avoid uploading sensitive or confidential information. The user is solely responsible for any outcomes resulting from the use of these prompts.
Please share this article if you like it!
No Comment! Be the first one.