16 人猜測自己讀懂 AI 程式碼的程度,大多數人都猜錯
16 people guessed how well they read AI code. Most were wrong.
一名研究人們如何理解 AI 編寫程式碼的學生設計了 5 段程式碼測驗,16 名參加者平均預測答對 2.6 題,實際只答對 1.7 題。其中 10 人高估表現,無人答對全部 5 題;樣本以學生為主,研究者希望有更多在職開發者參與。
Quick one. If you code with Cursor, Claude Code or Copilot, try this before reading further (90 sec, you guess your score first):
No spoilers below, I promise.
I've been curious about something. AI writes a lot of our code now. It runs, the tests pass, we ship it. But do we actually know what it does?
So I made a small quiz. 5 snippets, all AI-style code, all of them run without errors. Before you see any code, you guess how many you'll get right. Then you find out.
16 people have taken it so far. Mostly students, a few devs.
What happened
- People guessed 2.6 out of 5 on average.
- They got 1.7.
- 10 of 16 overestimated themselves.
- Nobody got all 5.
The part that surprised me most: people who said they skim AI code averaged 1 out of 5. People who only look when something breaks did better. My guess is that skimming feels like reviewing, so you trust it more than you should.
What kind of things are in there (no answers)
- one snippet quietly leaks something it shouldn't
- one fails without telling anyone
- one does something slightly different from what you asked for
- and one is completely fine, and almost everyone said it was broken
That last one is my favourite. Spotting bugs is one skill. Knowing when code is actually safe is another, and it seems way harder.
Why I'm doing this
I'm a student researching how people understand code that AI writes for them. The sample is tiny and skewed towards students, so I'd really like more working devs in it and give valuable feedback!
If you take it, drop your predicted vs actual score in the comments. I'm curious whether devs land anywhere near students.
來源:DEV Community · dev.to