Vibe Code Is Legacy Code Before It Ships
Vibe coding—writing code that "feels right" without rigorous testing or structure—creates legacy code from the moment it's written. This practice prioritizes intuition over engineering discipline, leading to unmaintainable systems that require costly rewrites. The author argues that shipping such code is irresponsible, as it burdens future developers with technical debt before the software even launches.
背景メモ
- 「Vibe Code(バイブス・コード)」とは、AIコード生成ツール(Cursor、GitHub Copilot、Claude Artifactsなど)にプロンプトを渡し、生成されたコードをほとんどレビューせずにそのまま受け入れる開発スタイルを指す造語。いわば「雰囲気で書かせたコード」。
- この記事の主張:Vibe Codeは、出荷される前からすでに「レガシーコード」である——つまり、誰も構造を理解しておらず、修正が怖く、テストもなく、ただ動いているから触らない、という状態に最初から陥っている。
- レガシーコードの古典的定義はマイケル・フェザーズ著『Working Effectively with Legacy Code』に由来し、「テストのないコード」を指す。Vibe CodeはAIが一発書きしたコードなので、ほぼ確実にテストがなく、生成者自身も中身を完全に理解していない。
- 背景として、2023〜2024年にかけてLLMベースのコード補完・生成ツールが急速に普及。生産性向上の一方で、コードの品質低下や技術的負債(tech debt)の蓄積を懸念する声がエンジニア界隈で増えている。この記事はその警鐘を象徴する一編。