BM: Baca dalam Bahasa Melayu
World 9: Power Tools
Review AI-written code
You will learn: five red flags to look for before you merge AI-written code.
The problem
The AI wrote 40 lines in five seconds. It even runs. Your teammate says: “Ship it!” Do you?
Pick one answer.
Watch
Tap each point on the timeline.
Read AI code like any pull request. Watch for five red flags. Tap each one.
Try it
Here is part of an AI’s change. Tap the line you must never merge.
Tap the line you must never merge.
0 of 1 found
Hint
Look for something that should stay secret.Try it
Ready to merge, or needs work? Swipe each finding.
Swipe right for good, left for needs work. Or use the buttons.
The pull request adds tests for the new function
Predict
To add up prices, the AI wrote prices.sum() in JavaScript. What happens when it runs?
Pick one answer.
Try it
Your turn. Read the files in pull request #14. Then ask for changes on the Conversation tab.
Hint
Open Conversation. Write what to fix, pick Request changes, then Submit review.Check
The AI review said “No problems found.” Was it right?
Pick one answer.
You did it!
You can now spot problems in AI-written code before they ship.
Go deeper (optional)
Treat AI code like code from a new teammate. Read it, run it, test it. Copilot has a setting that can block suggestions matching public code. Ask your team which rules apply. Whoever merges the code is responsible for it, not the AI.
Bahasa Melayu
AI tulis 40 baris dalam lima saat. Ia pun boleh jalan. Rakan sepasukan anda kata: “Hantar saja!” Anda setuju?
Baca kod AI macam mana-mana pull request. Perhatikan lima tanda bahaya. Ketik setiap satu.
Ini sebahagian perubahan dari AI. Ketik baris yang tak boleh di-merge (cantum) langsung.
Sedia untuk merge, atau perlu baiki? Leret setiap dapatan.
Untuk jumlahkan harga, AI tulis prices.sum() dalam JavaScript. Apa yang berlaku bila ia dijalankan?
Giliran anda. Baca fail dalam pull request #14. Kemudian minta perubahan di tab Perbualan.
Semakan AI kata “Tiada masalah dijumpai.” Betulkah?
Kini anda boleh kesan masalah dalam kod tulisan AI sebelum ia dihantar.
You finished this before. Practice is always welcome!
Official docs: About Copilot code review · About Copilot coding agent · About pull request reviews
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?