Untuk buku flip penuh (selak halaman, kuiz, tanya), buka fail ini dalam Safari atau Chrome.For the full flip book (page turns, quizzes, ask box), open this file in Safari or Chrome.
Pemuda berkaca mata dalam hitam putih menggerakkan tangan di depan laptop; reben ungu dan ikon fail AI, JSON, PHP dan CSS berputar di sekelilingnya

Flipbook interaktifInteractive flipbook

Bina website dan app sendiri dengan AI, walaupun tak pernah tulis kod.Build your own website or app with AI, even if you've never written code.

Vibe Coding: Dari Idea ke RealitiVibe Coding: From Idea To Reality

5langkah idea ke realiti5steps from idea to reality15prompt sedia salin15ready-to-copy prompts10istilah, 10 analogi10terms, 10 analogies

Sebelum mulaBefore you start

Buku ini boleh disentuhThis book can be touched

Setiap halaman ada satu perkara untuk difahami atau dibuat. Ini cara bergerak.Every page has one thing to understand or do. Here is how to move around.

↷Selak: seret bucu halaman, tekan tepi halaman, atau guna kekunci ← →.Turn: drag a page corner, tap the page edge, or use the ← → keys.
★Bintang: setiap aktiviti yang siap menambah satu bintang.Stars: every finished activity adds a star.
⧉Prompt: tekan Copy pada kotak gelap, tampal ke Claude, dan tukar teks dalam [kurungan] dengan maklumat anda.Prompts: tap Copy on a dark box, paste it into Claude, and replace the text in [brackets] with your own details.
✦Tanya: minta halaman diterangkan lebih mudah, atau minta kuiz.Ask: have a page explained more simply, or ask for a quiz.
⇄Bahasa: tekan BM | EN di bar atas untuk tukar bahasa.Language: tap BM | EN in the top bar to switch language.
OrenOrangeKerja anda, manusiaYour work, the human
BiruBlueKerja AIThe AI's work
Jawapan anda kekal dengan andaYour answers stay with youKemajuan dan jawapan disimpan dalam pelayar ini sahaja.Progress and answers are saved in this browser only.

Analogi utamaThe main analogy

Anda tuan rumah. AI kontraktorYou own the house. AI is the contractor

Adam memegang pelan rumah dan menunjuk; Kodi menyusun bata biru membina rumah
AndaYouTahu apa yang nak dibinaKnows what to build
AITahu cara membinanyaKnows how to build it
Vibe codingAnda terangkan dalam bahasa biasa, AI tulis, ubah dan baiki kodnya.You describe it in plain language; the AI writes, changes and fixes the code.
AnalogiAnalogyAnda tak perlu tahu cara menyusun bata. Tapi anda mesti tahu rumah macam mana yang anda mahu: berapa bilik, untuk siapa, bajet berapa.You don't need to know how to lay bricks. But you must know what house you want: how many rooms, for whom, on what budget.

Hebat, tapi bukan sempurnaPowerful, not perfect

AI bukan butang ajaibAI is not a magic button

Kodi membina model aplikasi dengan laju; ada pepijat merah, mangga terbuka dan satu bata senget; Adam memeriksa dengan kanta pembesar

AI boleh tersilap atau terlepas lubang keselamatan. Anda tetap jurusemak terakhir.AI can get things wrong or miss a security hole. You are still the final checker.

Panggil developer bilaCall in a developer whenProjek melibatkan duit pelanggan, data peribadi orang ramai, atau ramai pengguna serentak.The project handles customers' money, people's personal data, or many users at once.

Kedai online anda akan terima bayaran kad pelanggan. Apa langkah bijak?Your online shop will take customers' card payments. What's the wise move?

Bayaran dan data peribadi perlu disemak orang berpengalaman.Payments and personal data need an experienced person to check them.

Kos permulaanStarting costs

Kebanyakannya percumaMostly free

Adam menyemak senarai di telefon di sebelah tabung babi dan kalendar
Bayar bulananMonthly

Claude Pro (sekitar USD 20 sebulan) atau Max untuk lebih banyak penggunaan.Claude Pro (about USD 20 a month), or Max for more usage.

Percuma untuk mulaFree to start

GitHub · Vercel Hobby · Supabase Free · Google Stitch

Bayar tahunan (pilihan)Yearly (optional)

Domain sendiri. Vercel beri alamat percuma.Your own domain. Vercel gives you a free address.

Awas had percumaMind the free limitsVercel Hobby hanya untuk projek peribadi. Supabase Free menjeda projek yang tidak aktif seminggu.Vercel Hobby is for personal projects only. Supabase Free pauses projects left idle for a week.

Analogi restoranThe restaurant analogy

Empat bahagian, satu sistemFour parts, one system

Pelanggan memilih menu di meja makanFrontend = ruang makanFrontend = dining room
Apa yang pengguna nampak dan tekan: butang, borang, gambar.What users see and tap: buttons, forms, pictures.
Robot chef memasak dan menyemak slip pesananBackend = dapurBackend = kitchen
Proses di belakang tabir: semak stok, kira harga, ikut peraturan.The work behind the scenes: check stock, work out prices, follow the rules.
Stor dengan rak bahan dan senarai inventoriDatabase = storDatabase = storeroom
Simpan, baca, ubah dan buang data secara kekal.Saves, reads, changes and deletes data for good.
Robot pelayan membawa pesanan ke dapur dan hidangan ke mejaAPI = pelayanAPI = waiter
Bawa pesanan ke dapur, kemudian bawa balik hasilnya.Takes the order to the kitchen, then brings the result back.

Ikut satu pesananFollow one order

Apa berlaku bila anda tekan “Beli”What happens when you tap “Buy”

Susun lima langkah ini ikut urutan yang betul.Put these five steps in the right order.

  1. Pelanggan tekan “Beli” di skrin (frontend)The customer taps “Buy” on screen (frontend)
  2. API bawa pesanan ke dapurThe API carries the order to the kitchen
  3. Backend semak stok dan kira hargaThe backend checks stock and works out the price
  4. Pesanan disimpan dalam databaseThe order is saved in the database
  5. Skrin papar “Pesanan berjaya”The screen shows “Order placed”
Perasan takDid you noticePesanan bermula dan berakhir di skrin yang sama. Semua kerja lain berlaku di belakang tabir.The order starts and ends on the same screen. Everything else happens behind the scenes.

Arahan kabur lawan jelasVague vs clear instructions

Beri peta, bukan kabusGive a map, not fog

Ilustrasi: Kabur

KaburVague

“Buat website jam yang cantik.”“Make a nice watch website.”

Ilustrasi: Jelas

JelasClear

Matlamat · Konteks · Fungsi · Had · Siap bilaGoal · Context · Features · Limits · Done when

Build the product page from the design in /design. Show photo, name, price and an Add to cart button. Mobile first. Do not touch the homepage. Done when it works on my phone.
Formula lima bahagianThe five-part formulaMatlamat apa nak dibina · Konteks fail rujukan · Fungsi apa mesti boleh buat · Had apa jangan disentuh · Siap bila cara nak uji.Goal what to build · Context reference files · Features what it must do · Limits what not to touch · Done when how to test it.

Sampel percumaFree sample

Sampel tamat di sini.The sample ends here.

Buku penuh ada 88 halaman.The full book has 88 pages.

Adam di garisan permulaan laluan berliku menuju bukit dengan mentol bercahaya; Kodi memberi isyarat bagus
Kaktus piksel ungu yang tersenyum, diperbuat daripada kiub kecil, dengan reben garisan magenta dan bentuk hitam berkilat
Vibe Coding

/* vibe-coding.md */

>AI ialah kontraktor.>AI is the contractor.

>Tuan rumahnya andaYou own the house

Vibe Coding: Dari Idea ke RealitiVibe Coding: From Idea To Reality