(评论)
(comments)

原始链接: https://news.ycombinator.com/item?id=43519938

在Hacker News关于“氛围编程”(vibe coding)和大型语言模型(LLM)在编程中应用的讨论中,用户分享了他们的经验和观点。 caust1c 发现LLM在编程方面已经超越了“恐怖谷”,在提供清晰的问题描述、约束条件和语言规范时,可以提高生产力。他们强调要审查所有LLM生成的代码。 bicx 询问了开发工具,提到了用于代码库分析的Windsurf。jawns 描述了一种有用的“树状”编程方法(树干、树枝、树叶),用于指导LLM并保持专注,同时将“氛围编程”与“心流”的感觉联系起来。 ashishb 将“氛围编程”比作社交媒体信息流,认为它结构较少,但需要更少的脑力,这可能会导致更广泛的采用。anthk 建议Prolog和Lisp非常适合代码重构和单元测试创建。 mattmcegg 认为理解AI生成的代码至关重要,将其比作过去理解从Stack Overflow复制的代码。

相关文章
  • (评论) 2025-03-22
  • (评论) 2025-03-22
  • (评论) 2025-03-22
  • (评论) 2025-03-04
  • “氛围编程”与现实 2025-03-22

  • 原文
    Hacker News new | past | comments | ask | show | jobs | submit login
    Breaking up with vibe coding (lucasaguiar.xyz)
    20 points by isfttr 44 minutes ago | hide | past | favorite | 6 comments










    I find reports on how others are using LLMs to code interesting to read.

    I've personally found LLMs to have recently crossed the "uncanny valley" of programming for me, meaning that I'm much much more productive than without them.

    I find that if you're really good at describing a problem and the constraints you want to solve, using a language it knows well (like Go) and following well known patterns in that language, you can describe thousands of lines of code and get accurate results.

    Maybe this isn't vibe coding speicfically, but I actually review every line of code that the LLM puts out. It doesn't take long if you know what you're reading, and the LLM make a weird solution to the problem. Usually if I'm specific about how I want it solved, it does it well.

    I also found it useful to say "Please tell me your plan to implement the solutions and ask me about any ambiguities that need clarification." In other words, don't make your own assumptions.

    The results are incredible. Thousands of lines of code that maybe not stylistically like mine, but are structurally very accurate to what I'm looking for. Giving function/interface signatures and code examples works wonders.



    What dev tools/processes are you using? I’m enjoying the enhanced capabilities of Windsurf with Sonnet 3.7, but I mostly use it for analyzing and problem-fixing in a huge codebase I recently inherited. I have yet to feed it anything like a PRD.


    One of the things I find really helpful and grounding, both to me and the LLM, is working in a tree-like (or fractal) pattern.

    First I create the trunk (a broad outline of what I wish to accomplish). Then I concentrate on filling out the branches (the individual bullet points of that broad outline). Then I drill down into the twigs and then the leaves.

    It's a different workflow than what I used to follow before LLMs arrived, where I tended to build bottom-up, rather than top-down. But it seems to keep both me and the LLM on track.

    Even though it's structured, is it still vibe coding? Well, I think of vibe coding mostly in terms of the psychology. If whatever I'm doing induces a feeling of flow, then that's the vibe I'm going for. https://en.wikipedia.org/wiki/Flow_(psychology)



    Vibe coding to normal programming (including GitHub Copilot) is what social media feeds to RSS feeds.

    Less structure, less optimal, but requires lower mental energy. So, it is likely to win, just like social media feeds won over RSS feeds.



    Prolog and Lisp would shine here refactoring code and writting and veryfing unit tests by themselves. For obvious reasons. Lexical parsing it's an exercise for Common Lisp programmers, and ditto with Contrain Satisfaction Problems under that language.


    this is nothing new. if you copy and pasted code from stackoverflow 5 years ago with no understanding how it works, it would have lead to the same issues. fully understanding what the AI did, and ask questions if you don't understand.






    Join us for AI Startup School this June 16-17 in San Francisco!


    Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact



    Search:
    联系我们 contact @ memedata.com