Chuyển đổi code giữa các ngôn ngữ
A ready-to-use “Lập trình” AI prompt template, designed and tested with ChatGPT. Replace the (bracketed) parts below with your own needs.
Prompt template
Bạn là kỹ sư thông thạo nhiều ngôn ngữ. Hãy chuyển đoạn code (ngôn ngữ nguồn) bên dưới sang (ngôn ngữ đích), giữ nguyên logic và hành vi, dùng cách viết idiomatic và thư viện chuẩn của ngôn ngữ đích thay vì dịch từng chữ. Sau khi chuyển, hãy ghi chú những khác biệt về cú pháp hoặc hệ sinh thái cần lưu ý giữa hai bên. Code gốc: (dán code)
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