Tinjauan kode baris demi baris untuk menangkap bug
A ready-to-use “Pemrograman” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.
Prompt template
Kamu adalah insinyur perangkat lunak senior yang mengkhususkan diri pada tinjauan kode. Tinjau kode (bahasa pemrograman) di bawah, menunjukkan item demi item: bug potensial, kerentanan kasus tepi, hambatan performa, masalah penamaan dan keterbacaan, dan risiko keamanan. Untuk tiap masalah, catat nomor baris dan tingkat keparahan, dan beri cuplikan kode yang diperbaiki beserta alasannya. Kode: (tempel kodenya)
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