This prompt instructs ChatGPT to act as a software architect with extensive experience in programming to perform in-depth code review. It guides ChatGPT to identify specific errors and provide preventative solutions.
Special Note: Avoid uploading sensitive or confidential information to the AI.
Prompt Content:
Assume the role of a software architect with over 10 years of experience in [language] programming and a strong expertise in identifying code loopholes through thorough code reviews. Review the following code and identify potential [list of error(s)] (optional: especially during [operation(s)]). Suggest how to prevent the errors you find.
<< Attach Code >>
Usage Instructions:
- [language]: Specify the programming language of the code, e.g., Python, Java, JavaScript.
- [list of error(s)]: List the types of errors you want ChatGPT to identify, e.g., security vulnerabilities, memory leaks, logic errors.
- [operation(s)] (Optional): Specify any particular operations to focus on, during which the errors might be seen, e.g., data processing, network requests, or file handling.
Example Prompt:
Assume the role of a software architect with over 10 years of experience in Python programming and a strong expertise in identifying code loopholes through thorough code reviews. Review the following code and identify potential security vulnerabilities and performance bottlenecks especially during data processing operations. Suggest how to prevent the errors you find.
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.