Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
Programming

Linus Torvalds Says Vibe Coding is Fine For Getting Started, 'Horrible Idea' For Maintenance (theregister.com) 26

Linus Torvalds is "fairly positive" about vibe coding as a way for people to get computers to do things they otherwise could not. The Linux kernel maintainer made the comments during an interview at the Linux Foundation Open Source Summit in Seoul earlier this month. But he cautioned that vibe coding would be a "horrible, horrible idea from a maintenance standpoint" for production code.

Torvalds told Dirk Hohndel, head of open source at Verizon, that computers have become more complicated than when he learned to code by typing in programs from computer magazines. He said vibe coding offers a path into computing for newcomers. The kernel maintainer is not using AI-assisted coding himself. He said his role has shifted from rejecting new ideas to sometimes pushing for them against opposition from longstanding maintainers who "kind of get stuck in a rut."

Rust is "actually becoming a real part of the kernel instead of being this experimental thing," he said. Torvalds said AI crawlers have been "very disruptive to a lot of our infrastructure" because they gather data from kernel.org source code. Kernel maintainers receive bugs and security notices that are "made up by people who misuse AI," though the problem is smaller than for other projects such as curl.

Linus Torvalds Says Vibe Coding is Fine For Getting Started, 'Horrible Idea' For Maintenance

Comments Filter:
  • Depends... (Score:5, Insightful)

    by theNetImp ( 190602 ) on Wednesday November 19, 2025 @01:46PM (#65805157)

    On what you are maintaining, and how you approach it. The code I maintain, if I need to add new functionality to a function, and I can describe it to claude easily enough then I'll tell claude code what file, what function add a marker where I want the code and explain what I want. I don't let it just edit on it's own I have it show me what it wants to do, and if it looks good I'll have them do it.

    Just telling claude hey add this functionality to my code base, and hoping it gets it right, which from what I am understanding seems a lot of people are doing, is a good way to get bad results.

    • by McLoud ( 92118 )

      I just use git to undo any harm and let claude do it's thing. Also, if certain code has no tests, I ask it to write tests for what's currently implemented first before changing anything

    • Re:Depends... (Score:4, Insightful)

      by SlashbotAgent ( 6477336 ) on Wednesday November 19, 2025 @02:16PM (#65805259)

      There's even more to maintaining than that. The maintainer has to read and understand the existing code, not just to expand on it, but to fix bugs. These bugs might be coding errors or logic errors.

      It's one thing to maintain a code base where the code follows a particular style, methodology, and way of thinking. But, when AI injects various blocks of code with different styles, and various random ways of thinking, it becomes dramatically harder to understand the code and find the issues. It's like well written/formatted code by a single person or group versus a pile of spaghetti from random sources. And, Linus is well used to chucks of spaghetti being through at him.

  • by TaliesinWI ( 454205 ) on Wednesday November 19, 2025 @02:00PM (#65805199) Journal

    A beginner using AI to "vibe code" isn't going to understand when it's making things up out of whole cloth (like how it has a tendency to hallucinate Powershell cmdlets) and is going to spend more time whack-a-moling the result to get a kinda-working program than they would if they just started with a basic foundation and got better as they go.

    You learn to build a skyscraper by first learning to build a house, not by ChatGPTing a skyscraper and then figuring out what you need to shore up to prevent it from falling down.

    • "Hey, Sora, show me a video of what my building would have looked like at the grand opening if it hadn't fallen on the orphanage. Oh, and ChatGPT, I need a recipe for toilet wine."
      • Gourmet Toilet Wine
        A Porcelain Palace Delicacy

        Ingredients

        2 cups of the finest toilet water (preferably from a prestigious municipal public toilet)
        1 packet of purple Kool-Aid (for that sophisticated grape note)
        3 cups of canned fruit cocktail (in heavy syrup - we're not savages)
        1 cup of granulated sugar
        1 slice of white bread (artisanal Wonder Bread preferred)
        10-15 jolly ranchers (mixed flavors for complexity)
        1 pristine plastic bag with secure closure

        Instructions

        Preparation of Vessel:
        Select your finest porcela

    • by gweihir ( 88907 ) on Wednesday November 19, 2025 @02:16PM (#65805255)

      Indeed. We should also remember that while Linus is a good engineer and a stellar project leader, he is not an engineering-teacher.

      • I thought you were going to say that Linus is not a skyscraperator! Don't change the analogy mid-thread please, it's confusing!
    • It's not very good at course-correcting a mistake during generation but if you ask it after every code generation prompt to pretend someone else wrote it and find the mistakes you have a shot at it fixing it for you. Still not a useful tool if you don't plan to learn anything while using it.

    • You learn to build a skyscraper by first learning to build a house, not by ChatGPTing a skyscraper and then figuring out what you need to shore up to prevent it from falling down.

      I love this quote!!!!

    • This is a really good point and one of the reasons why I'll happily keep to vim rather than using an IDE which I felt might have done too much for me. When coding with vim I like to keep the man pages in a terminal and other libraries on a split screen. I think using a code generator would just feel much worse than even letting the IDE suggest library functions to you.

      Maybe for somethings it's ok, but I've not found much. It seems a lot of uses are for asking it to give boiler plate back, but why bother, it

  • by fahrbot-bot ( 874524 ) on Wednesday November 19, 2025 @02:13PM (#65805243)

    I'll agree with that, especially if you're younger / less experienced and don't have a lot of code you've written banked from which you can pull. Cleaning up, or at least heavily reviewing, the vibe code for production may be a good way to hone your skills. The environment is kind of like that already with the existence of sites like Stack Overflow -- none of which were around when I was in university and getting started.

    Way back then, the system administrator (4.3BSD on VAX-11/785 and, later, also earlier Sun systems) was also a very knowledgeable programmer and would answer SA/coding questions - eventually. His first answer was always, "Did you read the man page?" [Off to read man pages.] His second was, "Did you read the source code?" [Off to read BSD source.] Then he would lean back, with the keyboard still on his lap, and scribble something helpful on the whiteboard... It actually was a good, if annoying, learning process as I read a LOT of man pages and BSD source -- which helped me a immensely when I became a SA and systems programmer.

  • I don't think vibe coding is going to last long as a thing, because it's just a sort of intermediate step to telling the AI to do what you want and having it do that. Right now, people are telling the LLM to write code to accomplish a thing and then running the code to see how it works, then telling the LLM to refine it, but that's a lot of unnecessary extra steps. I'm sure that in the not-too-distant future people will just tell the LLM what they want to do, which may require creating a custom user inter

  • by allo ( 1728082 ) on Wednesday November 19, 2025 @04:29PM (#65805625)

    Vibe coding is not the same as general coding with AI.

    With "Vibe coding" you basically instruct an agent to create a document containing a plan for your program and then to step by step create the required components. For some projects and some programming languages that works some time, but eventually these projects get to the point when it stops to work because the LLMs lose the overview, even if they would in general be fit for the project.

    But there is also the option to have the AI as a tool in your IDE. Select a piece of code and then ask the LLM about it, or instruct the LLM to change your tail recursion to a loop or similar things. The piece of code is manageable and and you are watching the LLM program like a pair programmer and instantly stop it if it begins to do things you didn't want. You can also use it as StackOverflow with fewer insults, by asking the LLM "Is there a STL function that can wrap this for-loop more idiomatic" and get an answer for your code even may be no drop-in snippet but more an explanation.

    Don't just buy what large companies want to sell you, but only take the pieces that are useful for you and leave out the others.

  • Learning requires quality input data to your learning process. That's why school exist. If AI gets it wrong or convoluted roughly half the time, is AI really the right knowledge source to recommend to potential student?

    • by narcc ( 412956 )

      The hype around AI in education at least makes sense. If you're impressed with a chatbot and try to use it to learn about something you don't know much about, it can seem like an impossibly patient and wise tutor with limitless knowledge. The illusion is incredibly convincing... until you try having it teach you about a subject you know very well.

      The terminally delusional, sadly, still assume that the current state-of-the-art must be good enough for primary school children as the material isn't terribly c

  • Blowhard bloviates obvious cognitive biases. News at 11.

    Why does he keep doing this?
    It can't be good for the Linux kernel.

    • by Jeremi ( 14640 )

      Why does he keep doing this?

      You mean, why does Linus keep agreeing to be interviewed, and then reply to straightforward questions with the obvious answers?

      What would you rather he do? Refuse to be interviewed, or maybe make up unexpected answers just to be edgy?

  • by Anonymous Coward

    Why does anyone care what that asshole thinks about anything?

  • by Anonymous Coward

    As more engineers start using Rust, the quality will gradually decline obliterating all gains that have been made.

  • Despite claims to the contrary, nobody, whether getting started or maintaining a project, can do it purely with "vibe coding." AI assistance, yes, but not "vibe coding." AI makes too many mistakes. Every. Single. Request. If your coding prompt spits out more than half a dozen lines of code, it's going to have flaws, some of them very serious. Many times, generated code will not even compile, let alone be "correct."

Leveraging always beats prototyping.

Working...