Claude Code vs Codex vs Gemini vs OpenCode (GLM-5) ลองเทสแบบ Prompt เดียวกัน
AI Basic
คลิปนี้ผมลองเทียบ AI Coding 4 ตัว สำหรับช่วยเขียนโค้ด ได้แก่ Claude Code vs Codex vs Gemini vs OpenCode (ผ่าน GLM-5 model) โดยใช้ Prompt เดียวกันเป๊ะ
Prompt ที่ใช้
Build a UI-only e-commerce site using Astro 5 + Tailwind CSS v4 (@theme in global.css) + Preact islands. No payments, no backend. Goal: clean UI + working add-to-cart interactions.
Pages:
- / : landing page with hero + featured products grid- `/products/[slug]` : product detail with image gallery, price, description, stock badge, variant selector (e.g., color), quantity, and “Add to cart” button- `/cart` : cart UI (qty +/- , remove, subtotal), checkout button disabled (placeholder)
Data/state:
- Products + variants in `src/data/products.ts` (id, slug, name, description, images[], price_cents, currency, inventory_count, variants[{id,color,inventory_count}]).- Cart state with nanostores + localStorage persistence; header cart count as a Preact island.
Deliver:
- Full file tree + full contents of all files + README (install, dev, build).- Deployment: build outputs `dist` that can be deployed to any static host.โดยผม input prompt ลงไป และให้ทุกตัว ตั้งค่าเป็น Plan Mode ก่อน ให้วางแผน จากนั้น ถ้ามีคำถาม ก็ตอบจน ได้ Plan และลงมือเขียน
ไม่มี rules, instruction, skills, MCP, agent หรือไฟล์ใดๆ ทั้งหมด เริ่มจาก folder เปล่าๆ
คุณชอบ ผลลัพธ์ของตัวไหนมากที่สุด?
หมายเหตุ: ผลลัพธ์อาจต่างกันตามเวอร์ชัน/การอัปเดตของโมเดล, สภาพแวดล้อม และการ Plan ของเรา ขึ้นอยู่กับความชอบความถนัดแต่ละคน