อธิบายโค้ดที่ชวนงงด้วยภาษาที่เข้าใจง่าย
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