‹ BackHN Continuity

Thread

The problem is not AI code, but not knowing about system architecture or intent

388 points · 240 comments · zazuke

  1. bengold14 · · focus · HN ↗
    I see this everyday. The problem is code is the wrong abstraction for the work we do. LLMs have solved coding, but they haven't solved systems, collaboration or system maintenance.

    Edit: Since I seem to have touched a nerve - I&#x27;ve been working on a project to solve this: <a href="https:&#x2F;&#x2F;www.archme.io" rel="nofollow">https:&#x2F;&#x2F;www.archme.io if you want to know my thoughts on the right abstraction

    1. verdverm · · focus · HN ↗
      When you say &quot;solved coding,&quot; what does this mean, what does it look like?

      I have strong disagreement because it sounds like, by analogy or proxy, we have also &quot;solved writing&quot;

      1. glimshe · · focus · HN ↗
        &quot;solved coding&quot; is type of thing you say if you want to sound smart.

        Saying that LLMs have &quot;reduced the cost of coding&quot; would be boring. And using your analogy, pencils, typewriters and computers have all reduced the cost of writing, but writers are still around.

        1. grumbel · · focus · HN ↗
          &quot;Reducing the cost of coding&quot; would imply that you still have to code, but with current LLMs you no longer have to. You can write 100s of thousands of lines of code without ever having to touch a single line of code. Literally &quot;here is a git repo, here is an issue, please fix&quot;.

          You might still need to nudge the LLM in the right direction or stop it from going off weird tangents, but none of that involves touching actual code yourself.

          1. verdverm · · focus · HN ↗
            What is coding? Pushing keys or knowing the right keys to push?

            Ai can push a lot of keys very fast, but not always the right ones

            if they need to be reminded to follow the coding standards, visible in the very code they are working on, what has been solved?

            1. grumbel · · focus · HN ↗
              &gt; What is coding?

              Opening the IDE and typing program code. With LLMs you don&#x27;t have to use an IDE, you don&#x27;t have look at program code, you don&#x27;t have to care about coding standards. You ask the chatbot to write you a program&#x2F;feature&#x2F;fix and chatbot does it.

              Is chatting with a chatbot still &quot;coding&quot;?

              The part that isn&#x27;t fully solved is just the software architecture side of things, do you want library A or library B, or write it all from scratch? LLM can do all three, but if you aren&#x27;t careful it might go down a route that you don&#x27;t like. But that again can be fixed with chat, &quot;replace A with B&quot;, not coding.

              1. tripleee · · focus · HN ↗
                So lets say you plan the software architecture and take a person off the street, give them a frontier model and tell them to clone Figma given your architecture

                How far would they get?

                1. verdverm · · focus · HN ↗
                  As a developer, a good way to reframe this and step away from your own domain expertise, is to read Terence Tao&#x27;s conversation with ChatGPT and ask yourself &quot;could I have done that?&quot;
        2. bengold14 · · focus · HN ↗
          I&#x27;m not trying to sound smart, I just think it encompasses what most people now acknowledge. LLMs write code faster and generally better than needed for most cases, and that seems to be becoming the prevalent opinion seeing as most folks have stopped doing PR reviews.

          The problem is, without PR reviews &amp; strict oversight, we&#x27;re losing knowledge, system design &amp; control of our codebases &amp; products. Which is why, IMO, the coding is solved but the other parts which used to be so tightly coupled to programming are cropping up as their own issues.

          1. bcrosby95 · · focus · HN ↗
            This ties into my experience: greenfield projects turn bad way faster than legacy ones, because AI has no established patterns to key off and it does increasingly dumb shit.
        3. yetanotherjosh · · focus · HN ↗
          I&#x27;d separate &quot;coding&quot; from software engineering. Software engineering is not solved. The new challenge in software engineering is how to properly use AI to maximum leverage and nobody has solved that.

          But, &quot;coding&quot; is, except that solving it means using techniques that are still barely understood and barely described today (something I&#x27;m hoping to be able to communicate better myself about). It is now possible (at least for most consumer software, I would not say applications where human life or extreme risk is involved) to work exclusively in the domain of natural language requirements, natural language architectural&#x2F;design decisions, and natural language test cases, and deliver product of equal or better software quality than average human code authors could have produced. Even in a language that you plausibly don&#x27;t actually know how to code in, because the language itself can often be separable from the requirements and verification process.

          If someone who doesn&#x27;t know a language or framework can plausibly produce better software using it, and faster, than a team of people who do know the language&#x2F;framework (and I would strongly argue that is more than plausible now with models like Astra and Fable) then it&#x27;s not just &quot;coding is less expensive.&quot;

          It&#x27;s like saying computers make complex calculations less expensive. That&#x27;s true, but it&#x27;s missing the real paradigm shift.

      2. [deleted] · · focus · HN ↗

        [deleted]

      3. gslepak · · focus · HN ↗
        It means &quot;for my requirements they&#x27;re good enough.&quot;

        They haven&#x27;t solved coding.

        Programming is an art form. And the better you get at it, the better kinds of ideas (abstractions) you can create.

        This is something today&#x27;s AI cannot do.

        If everyone were to permanently switch to AI for software development, software innovation would cease.

        1. verdverm · · focus · HN ↗
          even setting aside the artistic side of the profession, I see these things make all sorts of basic mistakes, so even the mechanical part doesn&#x27;t seem &quot;solved&quot; ime
      4. KeplerBoy · · focus · HN ↗
        It solved coding as in it&#x27;s significantly less of a bottleneck than it was before.

        At least that&#x27;s how I experience it. In the before times each non-trivial code change had a real opportunity cost as it would easily consume two days until I could even estimate whether this is worth looking deeper into.

      5. ActorNightly · · focus · HN ↗
        Given a working system, like a web service or services, and their code, non technical people can now make effective changes with LLMs.

        For example, nobody on our team writes manual code anymore, we have basically set up a harness where an engineer types up the requirements for a change, the system implements it given certain constraints, we have automated unit and integration tests that are ran, and if any errors pop up, they get fed back into the loop until fixed.

        But to do that, you need to actually know what you are doing - you have to have good instructions to keep the agents in check and not start making mods outside of their bounds especially when the issue is with a dependant service that is causing errors.

        1. verdverm · · focus · HN ↗
          I&#x27;m well on my way down this path too, but that is a process implemented in markdown. I don&#x27;t see coding as solved, or a solvable thing at all, like writing

          To solve something, there must be a defined problem, what is the problem that was solved. Or perhaps it is just &quot;coding is solved&quot; is the turn of phrase de jour be ause we haven&#x27;t yet found a more succinct and accurate way to describe the paradigm shift

          When it comes to non technical people using Ai to build things on code, the outcomes are on average pretty poor, which i see as evidence that the driver and their expertise behind the Ai matters a lot. A notable example is Terence Tao&#x27;s conversation with ChatGPT, us math normies could never have done that. The same applies to coding agents ime

      6. sampullman · · focus · HN ↗
        Writing is a means of expression and communication. Code can be those things, but that&#x27;s not its primary purpose.

        I think &quot;solved coding&quot; is taking it too far, but for many projects, the mechanical aspect of it has been removed or reduced greatly.

        LLMs will have a much harder time &quot;solving writing&quot;, because they cannot develop their own style and so are severely limited, creatively. This is less important for coding.

        1. verdverm · · focus · HN ↗
          I agree that writing is much harder, largely because there is no way to get concrete feedback for &quot;does it work&quot;

          I still think they produce shoddy or sus code too often, an artifact of the current generation&#x27;s training to try anything and everything until it &quot;completes the task&quot;. They have a hard time even with that concept, which is part of &quot;coding&quot; imo

      7. yetanotherjosh · · focus · HN ↗
        I would say it means you are building software but no longer are concerned with writing or editing literal code. Your concerns have moved up the stack to managing requirements, context, and verification processes.

        Just to make this clear: if you can define a really good PRD and sophisticated technical specs, and a strong set of tests cases to pass, at the right level of architectural granularity, plus adversarial code review processes that triangulate and weed out most mistakes, SOTA agents can write the code autonomously, at or above the quality level of most human coding teams. I call that &quot;solved&quot; but only if you meet those context requirements. Which is still hard, not solved, at that layer.

        Solving writing is not a good analogy IMO. Writing is for human consumption, and cannot be wrapped in objective requirements and verification processes. Certain forms of writing perhaps could be (can&#x27;t think of one at the moment but I don&#x27;t doubt some exist), and those forms might be good analogies for being &quot;solvable&quot; or &quot;solved.&quot;

        1. verdverm · · focus · HN ↗
          &gt; no longer are concerned with writing or editing literal code

          I&#x27;m not typing keys, but I am very much still concerned about the quality and nature of the code. Coding to me is more than pushing keys

          &gt; if you can define a really good PRD and sophisticated technical specs

          I still believe we cannot waterfall software, the idea seems like taking a step backwards. How often do we learn about an unforeseen complexity only after getting into the implementation?

          In my experience with agents, it&#x27;s better to be iterative and in-the-loop. Start with a decent description, have them research the code&#x2F;issue, write up an initial plan&#x2F;design, work iteratively on writing code and updating design doc, review and finalize the code and markdown. Then future agents will have some resources to shortcut understanding the code base.

          1. yetanotherjosh · · focus · HN ↗
            I&#x27;m not talking about not just punching the keyboard to type out the identifiers in the code. I&#x27;m talking about not making decisions about most classes and functions, most type definitions, most of the weedy logic within most modules, etc. If it can&#x27;t be described in natural language as requirements, or in a typescript type or other data shape DSL (I think key data model types are probably still important to own), it&#x27;s probably too weedy.

            Natural language test cases still define the expectations both at the product and architectural level and are essential for triangulating the agents on successful outcomes.

            A requirements and verification approach with agents is not waterfall any more than TDD is waterfall. Does thinking ahead and doing some planning equal waterfall? Does describing how a feature works to an end user, and making some key technical decisions, before you build it, mean waterfall? Does having some sense of what you&#x27;re building first mean waterfall? With agents, you can specify (with PRD and technical specs) what you THINK it should do, and in minutes or hours or at most days, have the result, which you then learn from and iterate. If you didn&#x27;t fully think it through, the agents will do one of three things: 1) decide for you, which you learn from 2) stop and ask, which you learn from 3) introduce bugs, which you learn from.

            It&#x27;s extremely iterative.

            1. verdverm · · focus · HN ↗
              How are you thinking about technical debt in this new agentic age? (also markdown debt?)

              It&#x27;s one of my bigger concerns and I use this iterative approach to try and reduce it... &quot;go look at the .&#x2F;cli directory and generate me a report of inconsistencies blah blah...&quot; or &quot;review .&#x2F;research&#x2F;something.md, validate consistency, correctness, claims, ...&quot;

              ... pseudo prose, have we made that a thing yet like pseudo code?

        2. everforward · · focus · HN ↗
          I agree with you, but it&#x27;s a moot point for software engineering.

          &gt; Your concerns have moved up the stack to managing requirements, context, and verification processes.

          This has always been the concern. &quot;Add oauth to this app, there are no requirements beyond oauth working&quot; has been an intern level task for ages. What makes software engineering hard is when the requirements start adding &quot;well it has to use this oauth backend that isn&#x27;t technically spec compliant, and the user is going to send some kind of random token you need to translate to oauth, and...&quot;. The problem isn&#x27;t in writing code that will do the thing, it&#x27;s figuring out exactly how that backend isn&#x27;t oauth compliant and what chain of API calls I have to make to convert their random token into an oauth one, and etc.

          Producing software that complies with a test suite isn&#x27;t really novel. You&#x27;ve been able to outsource that forever. This falls apart in the same places outsourcing does; I&#x27;m sure India&#x2F;Phillipines&#x2F;etc&#x2F; is more than capable of iterating on code until it passes a test suite.

      8. mwillis · · focus · HN ↗
        maybe it’s more like “abstracted” away, in the same way higher-level languages “solved” needing to code via machine instruction sets. Higher level languages allowed humans to think more like themselves. AI puts another abstraction in front of the outcome, making it even more generally open to human thinking and less defined by the need to give machines exactly what they expect.

        Today, human-language outlines &#x2F; briefs &#x2F; prompts are “compiled” to code which is itself then adapted to hardware. We are stretching less and less across the divide, doing less and less work on the terms of the machine. Now the farthest we’ll stretch is often formatted markdown - the most basic application of machine-parseable structure to very organic human thinking. Because we’re given the chance to be less precise, coherence suffers.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.