跳转到内容

Vibe coding

维基百科,自由的百科全书

这是本页的一个历史版本,由Wolfch留言 | 贡献2025年3月26日 (三) 22:18编辑。这可能和当前版本存在着巨大的差异。

ChatGPT撰寫洗牌的Javascript函式

Vibe coding是一種使用AI程式設計技術,開發者會用幾句話描述問題,將這些文字作為prompt,提供給開發軟體專用的大型语言模型(LLM),应用程序的原始碼是由大型语言模型產生,開發者的工作從原來的撰寫程式碼,改為指導AI產生程式碼,測試及優化程式碼[1][2][3]。Vibe coding的提倡者認為這甚至可以讓新手程式設計師在沒有以往软件工程要求技能的情形下,可以產出軟體[4]。此一詞語是由安德烈·卡帕斯在2025年2月提出[5][2][4][1],在3月時列在韋氏英語慣用法詞典英语Merriam-Webster's Dictionary of English Usage的"slang & trending"名詞[6]

定義

電腦科學家安德烈·卡帕斯OpenAI的共同創辦人,也曾任特斯拉的AI部門總監,他在2025年2月提出了vibe coding一詞[5][2][4][1]。此概念是指依賴大型语言模型的程式撰寫方式,程式設計者用自然語言敘述,提供給大型语言模型,以此產生可運行的程式碼[1]。卡帕斯敘述其開發方式是對話式的,用語音命令,由AI產生實際的程式碼[2]「這作法不是直接撰寫程式,我看到了東西,說出來,運行,剪貼,此作法大部份情形下可以運作。」[4]。卡帕斯也知道vibe coding有其限制,為了解決問題,他需要用一些無關的變更來作實驗,直到問題解決為止[2] He concluded that he found the technique "not too bad for throwaway weekend projects" and described it as "quite amusing."[5]

vibe coding的概念說明了卡帕斯從2023年起的主張「最新最熱門的程式語言是英文」,大型语言模型的能力已可以讓人不需要為了讓電腦運作而學習特定的程式語言[7]

依照vibe coding的定義,vibe coding中一個重要的元素是使用者接受AI產生的程式碼,不需要對其有完全的理解[1]。AI研究者Simon Willison英语Simon Willison提到:「若大型语言模型寫了你程式裡的每一行內容,而你對其進行評審和測試,對此完全理解,這就不是我書裡提到的vibe coding,這只是用大型语言模型作為打字助理。」[1]

參考資料

  1. ^ 1.0 1.1 1.2 1.3 1.4 1.5 Edwards, Benj. Will the future of software development run on vibes?. Ars Technica. 2025-03-05 [2025-03-06]. (原始内容存档于2025-03-06) (美国英语). 
  2. ^ 2.0 2.1 2.2 2.3 2.4 What is 'vibe coding'? Former Tesla AI director Andrej Karpathy defines a new era in AI-driven development. The Times of India. 2025-03-02 [2025-03-03]. (原始内容存档于2025-03-04). 
  3. ^ Roose, Kevin. Not a Coder? With A.I., Just Having an Idea Can Be Enough.. The New York Times. 2025-02-27 [2025-03-03]. ISSN 0362-4331. (原始内容存档于March 3, 2025) (美国英语). 
  4. ^ 4.0 4.1 4.2 4.3 Chowdhury, Hasan; Mann, Jyoti. Silicon Valley's next act: bringing 'vibe coding' to the world. Business Insider. 13 February 2025 [2025-03-03]. (原始内容存档于February 26, 2025). 
  5. ^ 5.0 5.1 5.2 Karpathy, Andrej. Andrej Karpathy on X: "There's a new kind of coding I call "vibe coding", where you fully give in to the vibes, embrace exponentials, and forget that the code even exists. ...". X. 2 February 2025 [2025-03-07]. (原始内容存档于February 18, 2025). 
  6. ^ vibe coding. www.merriam-webster.com. March 8, 2025 [2025-03-15] (英语). 
  7. ^ Naughton, John. Now you don't even need code to be a programmer. But you do still need expertise. The Observer. 2025-03-16 [2025-03-16].