Bjarne Stroustrup, the creator of C++, has criticized 'vibe coding' as idiotic, sparking a massive debate with Ruby on Rails creator David Heinemeier Hansson.

Loading Video...
  • C++ creator Bjarne Stroustrup warns that AI code is bloated, buggy, and insecure.
  • He labeled 'vibe coding'—using natural language prompts—as "idiotic."
  • Ruby on Rails creator David Heinemeier Hansson countered the criticism on X.
  • The debate highlights the tension between AI efficiency and engineering rigor.

A fundamental rift has opened in the software development community. Bjarne Stroustrup, the legendary programmer who created C++ in 1979, has launched a scathing critique against the rising trend of AI-generated code. Speaking on The Peterman Podcast, Stroustrup described the concept of "vibe coding"—the practice of using plain English prompts to generate software—as "idiotic." He argues that true programming requires structural abstraction and logic that a chatbot simply cannot replicate.

The Hidden Dangers of AI-Written Code

Stroustrup's concerns extend beyond mere philosophy; he points to practical, dangerous flaws. He asserts that AI-generated code is often bloated, riddled with bugs, and contains significant security vulnerabilities. A particularly alarming observation made by Stroustrup is the impact on the workforce: senior developers are increasingly opting for retirement because they are exhausted by the endless task of re-verifying code that changes unpredictably with every new AI prompt.

Why This Matters

BozokMedia analysis shows that this conflict represents a critical inflection point for the tech industry. As corporations push for AI integration to reduce headcount, the industry faces a dilemma: the pursuit of immediate speed versus the long-term necessity of code stability and security.

The reliance on AI for code generation without deep structural understanding creates a technical debt that could bankrupt future software stability.

Stroustrup did offer a nuanced view, suggesting that AI might be acceptable for the 70-80% of code that is not safety-critical or performance-sensitive. However, he remains adamant that for the crucial 10-20% of code where errors can lead to catastrophic failures, AI is currently unfit for purpose.

The Ruby on Rails Response

The critique did not go unchallenged. David Heinemeier Hansson, the creator of Ruby on Rails, responded to the comments on X (formerly Twitter). While maintaining respect for Stroustrup's legacy, Hansson dismissed the severity of the critique, jokingly noting that he had built applications in C++ without ever needing to scrutinize a single line of the underlying code.

Did You Know?: C++ was originally designed as an extension of the C programming language to include object-oriented features.

Frequently Asked Questions

1. What does Stroustrup mean by 'vibe coding'?
It refers to the modern trend where developers attempt to build complex software by simply describing the 'vibe' or intent in natural language to an AI, rather than writing formal code.

2. Is AI code actually unsafe?
According to experts like Stroustrup, AI can introduce subtle security holes and inefficient logic that are difficult for even experienced developers to catch during rapid iterations.