Login
You're viewing the ruby.social public feed.
  • Nov 4, 2026, 8:20 AM

    Now for the main point:

    Farley et al are converging around an idea of "just specify precisely what you want the program to do, and have the machine build it". My counter is, "that specification is what we call code, and if it is sufficiently precise, it is also executable - no 'AI' required".

    A lot of time and energy in the industry and academy have been spent on modeling why writing code makes sense as an exploratory and iterative approach, rather than an up front, perfectly precise specification. I'll point out a few key items, any one of which fully disqualifies the use of "AI" code gen.

    💬 2🔄 6⭐ 17

Replies

  • Nov 4, 2026, 8:28 AM

    1. Writing code is not just typing. Naur called it theory building in 1985, a framing that has some issues, but gets at the point. pages.cs.wisc.edu/~remzi/Naur.

    As we write code, we also refine our understanding of (i) the current state of the program, how it can change, how changes cascade through the structure, etc; and (ii) our desired outcome.

    Much like writing fiction, essays, anything else, writing is not just writing, but an exercise in making our ideas more concrete and precise, and as each idea becomes more well-described we learn more precisely how it fits with other parts. Or that it doesn't, so we have to move into more abstract territory again and reevaluate our approach.

    💬 1🔄 8⭐ 16
  • Nov 4, 2026, 8:29 AM

    Programming is making more and more concrete, precise decisions, until it executes. If those decisions weren't important, we would have a framework or library already doing what we want.

    That is, we already had a solution to the abstraction problem: package unimportant decisions in generic code, share the maintenance and conceptualization burden across more people. That's open source. Or standard libraries.

    The reason we rarely got more higher level generic abstractions, or the reason not everything is Wordpress and plugins, or Ruby on Rails apps, or whatever, is that *those decisions actually often matter*.

    Offloading these decisions to a machine—that, at best, makes average decisions—makes no sense if those *decisions matter*. And if they didn't matter, we should make a library for it.

    Nobody knows their exact desired outcome when they start writing the code. We used to know this. It fully disqualifies formal up-front specification.

    💬 1🔄 2⭐ 7
  • Nov 4, 2026, 8:35 AM

    2. There has already been tons of work into formal specification of programs.

    The main limiting factor is that sufficiently formal specification to avoid issues trends towards formal proofs.

    When I was at uni doing my MSc, I did some work with F* (FStar), a F#-derivative that makes the type system a fully formal proof. It was cool, and made tests obsolete, because you had a stronger guarantee.

    The problem with FStar or any other formsl verification (which to be clear, has been used in conjunction with LLMs as stochastic code fuzzers to produce mesningful results) is that writing the correct specification takes longer than just writing the program.

    Thst might be worth it for the guarantees it gives us, in some cases. Byt not for most software, and certsinly not for software where precision is explicitly—by thevuse of "AI"—devalued in favor of speed.*

    * Speed here, embarrasingly, being speed of code gen, not speed of value delivery.

    💬 2🔄 0⭐ 5
  • Nov 4, 2026, 8:40 AM

    The danger of using LLMs with imperfect specifications (anything not provable, basically) is the slot machine effect. You pull the lever and the machine one-shots 80%, 90%, 95% of what you want. It really can't get the last bit right, so you update the specification. That moves the needle a percentage point higher.

    Either you keep going until you have a formal, executable proof, and spent much longer than pre-"AI" methods would have required to get to the goal; or you stop at some point you feel is "good enough" and hope the unknown errors in the code aren't too bad when they manifest.

    And when those errors manifest, cf. point 1, no human will have a theory of why the code works as it does, which means no changes can be easily made that retain what works and fixes what doesn't. Without such a theory, how do you trace an edge case to your imperfect specification and make the right changes there, so the machine can fix it?

    Not easily, that I promise you.

    💬 1🔄 1⭐ 5
  • Nov 4, 2026, 8:46 AM

    3. The folks now pushing this narrative on specification up front *literally made their names in industry* ranting about top-down planning. Namely, the Agile movement named the enemy "Waterfall", where decisions flow from stage to stage, with long feedback loops back to the designers if things don't work out during implementation. All the structural critiques of Waterfall transfer directly to "AI"-based coding.

    For example, we learned the hard way that interfaces could not fully capture the requirements of an implementation (c.f. pt. 2), that testing ideas and adapting to changing contexts and new knowledge were paramount (c.f. pt. 1).

    A large part of why a small team with full application ownership can move faster and more safely than huge architecturally orchestrated departments, is because they can make better, holistically informed decisions, and are empowered to use that knowledge.

    Removing code writing, removes a lot of that knowledge.

    💬 2🔄 2⭐ 7
  • Nov 4, 2026, 9:06 AM

    ---

    Now, these are structural problems with vibe coding/"AI" based coding. They are also borne out in every thusly created code base I have reviewed.

    To avoid these issues, the fundamental mechanisms of programming must be changed. LLM-based programming tools cannot help here. Better abstractions might, but so many people have stopped working on these, to get on the stochastic band wagon.

    The result, for teams adopting "AI"-based coding, is pushing an increasing amount of unknown bugs and difficult maintenance ahead of a team rapidly unlearning (through the very use of "AI" and lack of use of the skills) the exact skills required to solve those issues.

    Might better, imperfect specification affect the error rate? Certainly! But it does not structurally change the mechanism. The people specifying the way Farley et al suggest might go longer before the consequences hit. But there's no easy way out from under a tangled pile of shit.

    💬 1🔄 1⭐ 6
  • Nov 4, 2026, 9:31 AM

    Farley tries to preempt some criticism in the video, so let's explicitly dismsntle these points:

    - The machine doesn't understand what you intended, that forces your specification to be precise and is good, actually.

    - The waterfall critique doesn't apply, because the specification is written iteratively.

    Throughout the video, he also assumes that the specification is the only important contract, "the specification is the software [in this new approach]," he says. That's not the relationship in specification by example/other spec driven approaches. He says that code can be regenerated as long as it adheres to spec, that tests shouldn't be tied to UI because that constrains regeneration scope. Let's touch on that, too.

    💬 1🔄 0⭐ 1
  • Nov 4, 2026, 10:31 AM

    So, first: The machine doesn't understand what you intended, that forces your specification to be precise and is good, actually.

    This describes the feedback loop I covered in pt. 2: if the generated code obviously fails, the developer adjusts the specification to be more precise. Farley clearly doesn't suggest continuing to a formal proof, which means he takes the other branch, assuming the program is complete when it adheres to the spec and doesn't obviously fail.

    "Obviously" does a lot of work here. What about the mistakes you don't notice, Mr. Farley? After all, you agree the machine can't correctly fill in the blank, it doesn't understand your intent.

    💬 2🔄 0⭐ 4
  • Nov 4, 2026, 10:35 AM

    One strong argument that TDD gurus used to forward, before seemingly collectively becoming LLM-brained, wss that Test-Driven Development serves to check the work, by forcing a developer to approach a problem from two sides at once, both specification of behavior from the outside (the test) and implementation from the inside (code).

    Requiring a specification independent of code means checking that the implementation stays true to the intent, that the stated goal of some code does not drift. Great.

    But by dropping the *code writing* Farley forgets all the implicit things happening when implementing.

    After all, TDD is not just stringently following a test, the gurus used to say. Implementing the code may inform whether the test was correct, or if it missed something. Implementing the code also means considering minimally disruptive changes, cascading effects on flexibility of design, etc. See how TDD is exactly like my riff on Naur's theory building, with supporting structure?

    💬 1🔄 1⭐ 5
  • Nov 4, 2026, 10:38 AM

    To avoid mistakes normally caught by theory building while *implementing* in TDD, you'd need a full formal spec. That takes longer to write than just code with TDD.

    Notice: TDD was always a tradeoff in a complex system, trying to optimize both speed and correctness (among other things). It was never 100% on one factor, but a careful, informed balance that improved outcomes in a lot of cases.

    Removing implementation work from the specifier fundamentally breaks this balance, and Farley offers no mechanisms for restoring quality and completeness.

    💬 2🔄 1⭐ 2
  • Nov 4, 2026, 10:42 AM

    Second: The waterfall critique doesn't apply, because the specification is written iteratively.

    This assumes that the only structural critique made in describing "waterfall" is the lack of iteration. It's not, and Farley knows it. I can't shake how disingenuous this feels.

    Would he think waterfall was solved if an architect had to make iterative requests of a developer, but still communicating only through a spec, keeping the same hierarchical information flow controls in place? Of course not. But it's the structure he recommends for "AI"-based development, and even that comparison generously assumes "AI" capabilities not in evidence, namely that it is like an isolated developer. It is not.

    💬 2🔄 0⭐ 5
  • Nov 4, 2026, 10:48 AM

    Finally, Farley argues from a point of view where the specification is the *only* relevant contract, and e.g. the spec (the only thing the LLM code gen respects) should not be tied to concrete UI.

    Imagine if developers wrote code like this. Every deployment would entail significant UI changes when things are rewritten from scratch. Expert users can never learn and memorize advanced functionslity or build embodied habits of use, as buttons keep moving, menus reordering, etc. etc.

    UI is an example of an *informal* contract with users, that can of course change, but jarring changes are minimized by competent developers to keep users familiar with most things, while changing what can be improved. Software is not delivered in a vacuum.

    💬 1🔄 0⭐ 5
  • Nov 4, 2026, 10:51 AM

    And UI is far from the only such implicit contract, which no specification or testing approach formalizes, because it was never necessary!!! This happened implicitly through building developer expertise, theory building, pair programming or other osmosis, or even formal reviews, with all the pros and cons in all those processes.

    Regressing to only formalizable specifications, dropping the unspecifiable, complex, intuition- and expertise-based requirements, will affect software value markedly.

    Maybe not in a way you can get fired for, because who can pinpoint it? But if that's how far the bar of software quality has fallen, we are truly in trouble.

    💬 1🔄 0⭐ 2
  • Nov 4, 2026, 3:40 PM

    @nielsa [Typos]

    "buildibg" -> "building"

    "droppinng" -> "dropping"

    (And this is more subjective, but "pin-point" is normally done without the dash. IE: "pinpoint")

    💬 0🔄 0⭐ 1
  • Nov 4, 2026, 10:40 PM

    @nielsa And also, you could have always made the same argument about waterfall before LLMs?

    Like… are you saying it’s not waterfall if we schedule two separate meetings a day apart to talk about the spec? “We wrote the spec iteratively!” Was never a defense.

    The whole point is that each iteration of spec writing must receive input from actually “trying out” following it through.

    💬 0🔄 0⭐ 1
  • Nov 4, 2026, 3:35 PM

    @nielsa [Typo]

    "That takes longer to write thsn judt code with TDD."

    "thsn judt" -> "than just", or maybe "than to just" or something similar?

    💬 1🔄 0⭐ 1
  • Nov 6, 2026, 5:33 PM

    @JeffGrigg @nielsa

    I imagine this move into the "LLMs are just fine if you use them right!" space is a consequence of wanting to make money and not becoming irrelevant. I can't imagine they seriously believe what they are saying. Instead they are just becoming irrelevant to those who followed them for years.

    I admit there is a time and place for programs written this way - impossible to maintain over the long term, can fail for a myriad of reasons and "works on my machine" is all that's been guaranteed. It is not only faster to vibe if that's all you need but also blows open the field to many more people.

    The disconnect is the industry claiming all programs are just fine if written this way. This is just an extension of not allocating time for maintenance or testing, ignoring user feedback etc. chronic problems that were never resolved, and now LLMs add more, much more on top.

    I would have wished for a drive towards using LLMs as another tool without abdicating responsibility for the implementation.

    💬 0🔄 0⭐ 0
  • 💬 0🔄 0⭐ 0
  • Nov 4, 2026, 3:30 PM

    @nielsa [Typo]

    "Farley clearly doesn't syggest continuing to a formal proof, …"

    "syggest" -> "suggest"

    …

    (I hope I'm not being too annoying, or pedantic. But I do think the corrections are good, and add value. And this does show that I'm reading your posts.)

    💬 1🔄 0⭐ 1
  • Nov 4, 2026, 3:43 PM

    @JeffGrigg Haha yeah, no I appreciate it! I'm catching some when I see people fave posts in my notifications, too, surprised at my own capacity for typos tbh 😁

    💬 1🔄 0⭐ 1
  • 💬 1🔄 0⭐ 1
  • 💬 1🔄 0⭐ 2
  • 💬 0🔄 0⭐ 2
  • Nov 4, 2026, 1:58 PM

    @nielsa I've had to do some LLM training for work and after it was over my first comment was "so we're going back to waterfall/scrummerfall, huh?". It's all "have your qa agents, and your dev agents, and a po agent to pick out the finer points, and your release manager agent, and..." and it drives me nuts.

    💬 1🔄 0⭐ 2
  • 💬 0🔄 0⭐ 0
  • Nov 4, 2026, 1:36 PM

    @nielsa "made tests obsolete, because you had a stronger guarantee" I don't fully agree. I think tests are still useful for "testing" if your intuition about what your proof proves holds. The tests then become more like examples.

    But yes it definitely obsoletes (most) traditional tests

    💬 1🔄 1⭐ 1
  • Nov 4, 2026, 1:39 PM

    @reynir Right, makes sense. Because the proofs are code, too 😁

    Good point, don't know how to integrate it well, but will boost 😁

    💬 1🔄 0⭐ 1
  • Nov 4, 2026, 2:04 PM

    @nielsa yea exactly. Don't worry about integrating it - it's rather tangential to your (fine) points.

    💬 0🔄 0⭐ 1
  • Nov 4, 2026, 8:26 PM

    @nielsa The biggest failure I see from people who have never been programmers discovering that LLMs can "write apps" for them, is that they have no concept of non-functional requirements. The best they can imagine is "make it secure". If, instead of specifications.md-direct-to-x86 we could give them a well-constrained framework to execute in (i.e. NOT a general-purpose programming language) I think we'd be much better off, regardless of the source of the code.

    💬 0🔄 0⭐ 1