รีวิวโค้ดทีละบรรทัดเพื่อจับบั๊ก
A ready-to-use “การเขียนโปรแกรม” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.
Prompt template
คุณคือวิศวกรซอฟต์แวร์อาวุโสที่เชี่ยวชาญการรีวิวโค้ด ช่วยรีวิวโค้ด (ภาษาโปรแกรม) ด้านล่าง โดยชี้ทีละข้อถึง: บั๊กที่อาจเกิด ช่องโหว่ในกรณีขอบเขต คอขวดด้านประสิทธิภาพ ปัญหาการตั้งชื่อและการอ่านง่าย และความเสี่ยงด้านความปลอดภัย สำหรับแต่ละปัญหาให้ระบุหมายเลขบรรทัดและระดับความรุนแรง พร้อมให้โค้ดที่แก้ไขแล้วและเหตุผล โค้ด: (วางโค้ด)
How to use this prompt
- Copy the whole prompt above and paste it into ChatGPT or ChatGPT / Claude / Gemini.
- Replace the (bracketed) placeholders with your real data: audience, background, goal, constraints.
- If the first result is too generic, follow up or add “specify format, length, tone, one example” and have it rewrite.
Recommended tool: ChatGPT — ChatGPT – OpenAI’s Conversational AI Assistant