‹ 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.

    2. Avicebron · · focus · HN ↗
      Or more broadly, LLMs fundamentally don&#x27;t &quot;understand&quot;. They can simulate understanding and generate text&#x2F;code&#x2F;whatever, but they don&#x27;t have will to engage with something holistically and &quot;own&quot; it.
      1. visarga · · focus · HN ↗
        I have been trying to define &quot;understanding&quot;. Is it when you can predict something that you understood it? Or maybe when you can explain it? Or how about when you can control it? Or invent it.

        This time I add another definition &quot;when you can own it&quot;.

        1. bengold14 · · focus · HN ↗
          When you can own it - I like that. Humans are still needed to own systems and drive&#x2F;direct changes. The question is how can we collaborate as organizations and teams to still own it when we don&#x27;t write the code and can&#x27;t keep up with the output
    3. Terr_ · · focus · HN ↗
      I find it helps to imagine what is&#x2F;isn&#x27;t solved (however, we choose to label it) by an indefinite number of cheap junior-developers.

      Except a little worse, since they were raised alone in a library, act mostly the same, and have harsh limits on personal growth.

      1. bengold14 · · focus · HN ↗
        tbh, I don&#x27;t think of LLMs as junior-devs. Maybe 6 months ago, but now they are v. senior code-monkeys. They are masters of their craft, but their craft is narrow and lacks big picture, collaboration, org goals, etc.
    4. cmrdporcupine · · focus · HN ↗
      Even if they &quot;solved&quot; that, the problem is it&#x27;s the LLM that &quot;knows&quot; it, not the team.

      Which is really the same problem with coding.

      The agentic model of it just taking over and doing everything is poisonous to effective long term team work.

      We&#x27;re well past the point where it&#x27;s about the quality of the work they produce. It&#x27;s the way they integrate (or rather, don&#x27;t) into human practices.

      1. bengold14 · · focus · HN ↗
        See my edit on the right abstraction - how do we get humans able to collaborate with agents effectively, where knowledge flows both ways, without needing a human to read 10k LOC, or even just lots of long LLM responses, to follow along
    5. jplusequalt · · focus · HN ↗
      &gt;The problem is code is the wrong abstraction for the work we do

      My team recently spent two weeks on a wild goose chase trying to figure out why TensorFlow Lite was generating nonsensical OpenCL kernels. Well it turns out that LLVM had a few bugs in the RISC-V assembly for our platform that was leading to silent garbage. It took combing through assembly dumps, hexdumps, a lot of pain staking debugging, and going through the TensorFlow Lite source code to to track this down.

      In your opinion, if code is the wrong abstraction to be working at, how do you approach this scenario?

      1. bengold14 · · focus · HN ↗
        Fair question - IMO it&#x27;s the wrong abstraction for building and collaborating on a new product with a team.

        To your point, it&#x27;s not the wrong abstraction for solving code level bugs. Just like python is not the right abstraction for solving memory corruption or pointer mis-alignments.

    6. tripleee · · focus · HN ↗
      Outsourcing solved coding a long time ago. You can go on Fiverr and prompt a real human developer for $2&#x2F;hr - even cheaper than LLMs!
      1. bengold14 · · focus · HN ↗
        Same problem though :). If an overseas employee knows the code and you don&#x27;t, you have ceded ownership, problem solving ability &amp; future direction of the project.
      2. imhoguy · · focus · HN ↗
        Wow, I think you have never had a chance to communicate with someone selling their expertise for $2&#x2F;h. Unless your time is also worth $2&#x2F;h, I think you would get better results prompting local 27B model.
    7. applfanboysbgon · · focus · HN ↗
      You can immediately tell someone has absolutely no fucking clue what they&#x27;re talking about and dismiss everything they say as soon as they say &quot;solved coding&quot;. You must write the most heinous code imaginable if you think LLMs are better, or even anywhere near, what a competent professional can produce. So funny to listen to terrible coders talk up terrible code.

      In the first place, what does it even mean to say that code is the &quot;wrong abstraction&quot; for the work we do? You can&#x27;t actually abstract away reality. Maybe you wish we could, that programming computers wasn&#x27;t about contending with physical constraints. But it is. It will never not be important to have control over what the hardware is actually doing. Abstractions are temporary conveniences, not a replacement for understanding what is being abstracted away.

      1. bengold14 · · focus · HN ↗
        Thanks my friend - I&#x27;m not an AI evangelist but I think it&#x27;s pretty clear that AI codes very well at this point. So well that I&#x27;d hazard a guess that most software engineers don&#x27;t write code anymore. Sure, maybe a professional could do better if they spent way more time on it, but it has always been a tradeoff we programmers have had to make. Getting things done + technical debt or writing the perfect code and over optimizing. And LLMs write working code, so the rest is just semantics on that scale.

        Code being the wrong abstraction is similar to assembly being the wrong abstraction if you&#x27;re trying to write a web browser game. Sure it&#x27;s possible to do it and yes, you may end up with more optimized code, but it&#x27;s not necessary and much slower to do that. Just use Javascript.

        And now, people are building larger applications &amp; functions quicker, and it no longer makes sense time-wise to look at Javascript for-loops when understanding the work. And that&#x27;s because those for-loops are generally correct, if maybe a bit under optimized. Instead, engineers need a new layer of abstraction, to understand what the code is doing without having to read each line.

        1. applfanboysbgon · · focus · HN ↗
          LLMs are faster until the technical debt comes due, at which point all supposed productivity gains evaporate and you&#x27;re now 10x slower than doing anything by hand. They have a use if the debt never comes due, eg. for one-off scripts or for prototypes you will responsibly dispose of. The debt does come due in production, very quickly.

          LLMs write code that compiles, which they accomplish mostly by robotically attempting the task and repeatedly fixing compile errors in a loop. That&#x27;s a very narrow definition of &quot;code that works&quot;, and I would argue it is the starting point, not the finish line. My definition of code that works is more like: secure, stable, maintainable, efficient, performant, effectively bug-free, with an ergonomic interface. LLMs fail on every single fucking count. I routinely observe generated code that leaves trivial 10x or 100x gains on the table, while having severe deficiencies in every measurable approach.

          Given that you talk about assembly as a bogeyman, though, I gather that you&#x27;re from the generation of &quot;software engineer&quot; who was already writing insecure, unstable, unmaintainable, 100x inefficient, 100x non-performant, bug-ridden JS for everything. LLMs can replace this class of people, it&#x27;s true.

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.