Refaktor kod ini supaya lebih mudah dibaca
A ready-to-use “Pengaturcaraan” AI prompt template, designed and tested with Cursor. Replace the (bracketed) parts below with your own needs.
Prompt template
Refaktor kod di bawah supaya lebih mudah dibaca dan diselenggara: 1) perbaiki penamaan; 2) pecahkan fungsi yang terlalu panjang; 3) buang pertindihan; 4) kekalkan tingkah laku tanpa perubahan. Selepas itu, terangkan apa yang anda ubah dan mengapa, dan sertakan kod penuh yang telah direfaktor. Kod: ``` tampal kod ```
How to use this prompt
- Copy the whole prompt above and paste it into Cursor 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: Cursor — A code editor built for AI.