Before, we used to write code and machines converted it to binary.
Now we will write designs and machines will convert it to code (and then to binary.)
There is a possibility of models taking over design for somewhat run-of-the-mill applications with minor architectural tweaks. This is the area that "vibe coding" is currently dominating. How many vibe coded apps, written by others, are you using? None. So that tells you something.
At best, models are currently at VB6 level: domain experts can do a lot of good. But they could've done it with VB6 as well. And MS Access. And Excel.
I am not sure how we would give the models an idea of taste and beauty because that is often what differentiates good/bad from great designs.
For individuals, sure. I'm fairly sure we're all building things that we couldn't build ourselves if only because we don't have the time needed. For large scale projects like building an OS from scratch or a database engine that's a lot less likely to be true, simply because there are dozens of examples of humans doing that level of complicated work without AI already (the OSs and DB engines we have are very literal evidence of it.) They just need to work collectively. Every part of those projects is understood people a person even if no person understands the whole thing.
So the problem with doing the same sort of thing with AI becomes a question of whether someone can build the equivalent sort of project with AI by describing something more complex than they understand themselves. And even if they just ignore the complex details and let AI do that bit, how can they validate that the AI has actually done what they asked if they can't understand it? It might have taken a shortcut that works until it doesn't. I hope no one builds an aviation or a life support system by doing that.
Ultimately, I suspect we want to be able to understand the system even if it limits what we build. A system that fails in an edge case carries significant risk which people probably don't want to be liable for.
There’s a reason it doesn’t look like most engineering. If it was a bridge it would have collapsed long ago and killed people.
A few months later, somebody would ask for a couple skyscrapers on the bridge. And software engineers would add them.
Finally, someone will organize a concert on it, and 1M people will jump up and down on it, and it will come crashing down.
And certainly, it's going to be due to the fact that software engineers do not do proper engineering.
Things are the way they are not because they would be difficult but because various systemic incentives and goals fought out each other, leading to the outcomes we then saw.
This balance these various forces fought out relied on a bunch of undocumented assumptions about reality. Every time one of those breaks, you get disruptions. LLMs broke quite a few of them, leading to a lot of CVEs lately.
It's not that engineers 30, 40, 50, ... years ago didn't know the potential risks of the hard- or software, but business executives found them acceptable, and those companies that provided the best 'bang for you bucks' with acceptable risk surfaced.
But this equation, which rested on the assumption of a fixed cap of humans being able to have the resources and skills to exploit a system, is now dissolving quickly as all you need now to do e2e cyber penetration or even soon social engineering is compute (no expertise or humans).
that does not explain all the CVEs in open source projects. or does it?
We never had enough eyeballs for all the software open or closed source.
Don’t mix up complexity with just high amounts of code.
Running a thousand copies of the same checker-program might give 1000x eyeballs, but not in the original useful way.
And then LLMs came along and completely upended the status quo.
AI has just made it so instead of a would be hacker needing tech skills to attack a system, they can get a robot to do it instead. The barrier to entry for a bad actor has dropped through the floor.
Physical hardware and real world systems don't have to worry about as much of this, because it's a lot harder to target them and hence they don't have thousands of robots trying everything under the sun to break in/cause them to malfunction. I'm sure if in future some tech let people on the other side of the world target every building/vehicle/piece of infrastructure we'd see similar effects there as we currently are in software.
For any system designed by some intelligent agent IA, there's going to be holes/bugs/exploits that can be easily seen by some agent IA*100. This has never been a serious problem in anything before, because humans don't span that range of intelligence, and collaboration doesn't provide such insights.
When I ask AI to write code with similar functionality, it's about 10x more code. Likewise when I look at the code for well respected open source projects. It's good code in terms following accepted practices, but hard to read because there's too much of it to see where the actual "working" code is.
A lot of the code is "defensive," i.e., type and bounds checking, trapping error conditions, etc. When I've looked at the unit tests, most of them test the defensive code.
I tell my engineering friends: "Engineers like to over-complicate things." Maybe the AI has picked up on this and is serving it back to us.
Most of the complexity I've seen in most programs I worked with so far was avoidable complexity, caused by under- and over-engineering. Mostly the latter.
If I had to identify the biggest culprit, that would be the OOP cult: all these organisation "principles" (not just SOLID) that have little basis in reality, and ultimately causes programs to be up to several times bigger, and up to several orders of magnitude slower, than the reasonable thing that just does the job.
The slower part is mostly because we forgot the laws of physics, ironically: the speed of light that ultimately drives the cache hierarchy for instance. That stuff is so fundamental by the way that even we humans have similar limitations with our working memory. The reason we split our source code in manageable, relatively isolated chunks, is very similar to the reason CPUs work faster when memory locality is good.
This parallel by the way may explain in part why simpler programs tends to run faster.
Using AI is still a skill in 2026. You do not have to one-shot it, you can prompt it to reduce the amount of code e.g. by dismissing unlikely edge cases or pointing it at some preexisting reference code.
I think you might be under a misapprehension about how non-rank-amateurs code. Almost all coding is trial-and-error if we're honest. No-one, no matter how well they plan, writes towering pristine monoliths of code.
The code might sometimes look like that after they're done, but that's only because so much time has been spent testing and 'polishing'.
Most - maybe all - professional programmers I've worked with spend longer in the debugger or inserting and reading logs than they do in writing code.
Sometimes it's possible to plan an architecture beforehand and implement it as-designed, but even that is usually a fool’s errand - the plan needs to change as the architecture meets reality and unforeseen complications arise.
It’s a time management thing as well; we would all like to have infinite time to make things beautiful and perfect, but you have to pick your battles.
This shouldn’t be the case for AI, but because it’s trained on this type of code, it probably has a tendency to write similar “verbose” code.
You can still steer it in the correct direction when reviewing its code though.
Id say more time writing tests and doing code review,
than debugging and looking at logs.
To the scientific programmer brain, that is just irrelevant, because the function will only ever be used with expected data. The type definition would be superfluous. Even if unexpected data were supplied, the pipeline would likely break anyhow with some other error.
Don't say debugger! A debugger is a tool of last, last, last resort. It only helps for an instant! It doesn't build durable assurance of correctness for you or your team; and the knowledge you gain only helps once. It's a super low leverage use of time.
Your limited time and energy should produce durable assurances of quality in your work. Consider replacing with these practices -
1. Test-driven Development (TDD, red/green/refactor.. it has many names)
Write the tests first; witness the tests fail, confirm they're failing for the right reason (not some irrelevant issue like missing imports) and only then move on to implementation. If you're putting tests in for code that already works, modify the production code to break it; witness the tests fails. Make 100% sure those prove what you think they do, because a test that has never been seen to fail is not only useless it's a risk that you left lies forever in your codebase.
2. End-to-end testing and the testing pyramid
Write end to end tests. Exercise as much of the system's architecture as possible in a closed container (eg. with a browser test framework like Playwright, and a container orchestrator like docker compose)... but since that's slow at the scale of a real product only cover the happy path. Defer to unit, feature, and integration tests for the rest, because smaller tests can remove all I/O, not test third-party code, and have injected dependencies - and thus, run in parallel under a millisecond. End to end tests don't have that luxury; hence, testing pyramid.
3. User Acceptance Testing
Which stakeholder(s) declare your implementation meets the original requirements? Put them in the process before release. They should confirm business and technical compliance with what you were supposed to build, and help catch more bugs before production
4. Feature-flags, A/B tests, and smaller, more frequent releases
Release more often, so each change can be smaller, spreading the risk of releasing out over many releases instead of one "big bang" (you know why we call them big bang releases right? because that's what they do) .. Hide work behind feature flags that ready to be enabled, then when it's ready, unleash it on the world in an instant. Bug with the work? Roll back the feature flag. Amazing.
5. Observability.
Make it possible to understand in the present moment as well as forensically what is happening in your product. Add traces, emit metrics, plan out logs to insert ahead of time (any time a metric won't suffice), add in product usage metrics to see where people are dropping out/getting confused and improve those things, and any other
6. Load testing, fuzz testing, security testing, performance testing, fault-injection testing
Most products have requirements that'll drive these and many other types of testing. Don't do a once-off test & fix. Produce harnesses and artifacts - and include them for the next person to pick up where you left off. Even better make these tests continuous and put them into your process - ie. in CI.
All preventative stuff that should helps keep that debugger at bay. In conclusion: say no to debuggers!
A debugger is useful because it let you verify what you know about the semantics of the program. printf only gives you a limited view at a time.
Consider: The only way to debug is to repro the crash.
If you can repro the crash you can write a test case!
(Yes it's technically undefined behaviour and not guaranteed to crash. In practice, an errant null does crash, producing a much more debuggable symptom than an ignored error code, and we are writing code for real compilers that actually exist.)
Of course you can have things go wrong. Things actually do. But when they do, it has to not crash - neither the software nor the plane.
You got a malformed packet from some other system? You'd better not use it like it's valid, and you'd better not crash. Returning an error code to say "that packet wasn't valid" is a perfectly valid way to deal with it.
The engine fell off the plane? You'd better not be trying to respond to the sensor readings from that engine any more, because they are by definition garbage.
Sure, for each individual thing, try as hard as possible to make it so that it cannot go wrong. But that won't be possible for everything. For the rest, make it so that it can go wrong and you still have a flyable plane and running software.
A bad instrument (one of three, for safety) produced bad data. Bad programming let some bad data slip through leading to a bad plane reaction.
The first fail safe "The triggering of a flight-control primary computer (FCPC) pitch fault" kicked in.
The second fail safe (Navy trained pilot) also kicked in.
So ... was that a good overall system that resulted in a life threatening low probability chain of events ultimately causing no crash and no deaths?
If you're constantly checking the output of your own functions then something has gone wrong. Also if you're accepting really broad arguments then that's not necessarily better if only some values make sense.
If someone sends you a date of birth as a string by all means try to parse it within reason but if they send 13-14-15 you should throw an error instead of trying to figure out the typo. Even better do not accept strings but use a date type. Yes this limits your interface but it's a lot clearer on both sides.
LLMs typically write 2x-25x as much code as they should. Occasionally they write 50x as much code as they should. It's not mimicking competent developers, or even the "over-complication" of perfectionists. It's plain bad.
The LLM created a build tool that sequenced dependent files by time instead of result. So a test would kick off 2 seconds after a compile was initiated instead of the build waiting for a compile to complete. Race conditions left and right under load which the LLM decided to mitigate by increasing wait times. Which lead to increased build times, but that didn't fix the race conditions.
So the LLM decided to compile/test each file 50x times in a row, only continuing with the build if all 50x runs resulted in no race conditions.
Also, run the entire build 3x in a row -- because why in the hell not. The first time under ptrace to inventory files that are created or modified. The second time to create a hash of each file inventoried during the first run. The third time to compare file hashes to the second run to determine build failures.
A build that should have takes less than a minute using plain make and Makefiles just about turned my laptop into slag after 30 minutes of 100% CPU load.
Fun times.
The technique was a wild success for the car, and a total failure (so far) for the tractor. My guess on why is kinda surprising to me.
The LLM (in the end) produced reliable working code that did exactly what I asked. But when I wrote the car-searching code, something else happened – I learnt about the second-hand car market, features available and what they sold for, and what they were worth to me. By the end of the process my expectations squarely matched market reality, the filters so finely tuned that I only had to look at a couple of candidates, and I was very happy with the outcome. The LLM's search results were full of noise. For example, I told it I only wanted nearby ads. It dropped the ones that gave a distant location, but kept the ones that gave none, even when their landlines put them 1000s of km away. Worse, it missed many real candidates as it repeatedly missed features in the ads that were obvious to a human. For example, if they mentioned mowing it probably came with a slasher Had I written it myself, I'd have hit both of these early on, because I'd have been reading the ads. With the LLM writing it, I never read them, so I never knew to ask. I still don't have a good feel for prices and what type of seller offers them, so I find myself going back and doing the searches manually to see what the LLM missed.
A middle ground would be to write the filters myself, so I get a feel for the market, and get the LLM to write the rest. The trouble is the same one you get with a bash script. You start with 10 lines; months later it's a 1000-line monster, bash was clearly the wrong choice, and by then it's far too hard to change. This started as a fully vibe-coded program. To bolt my own filters on I'd first have to understand its structure well enough to know what sort of filtering API would fit. That's possible, but no one wants to read and understand 50k lines of crap that could have been done in 1k. It would be less painful to write the whole thing myself.
> A lot of the code is "defensive," i.e., type and bounds checking, trapping error conditions, etc. When I've looked at the unit tests, most of them test the defensive code.
> I tell my engineering friends: "Engineers like to over-complicate things."
I took your message to be in a half-joking tone and I mean mine in the friendliest spirit, from someone who's been where you are, in response to the half-serious part :)
I used to be an "amateur scientific" programmer like you, learned Pascal ~35 years ago, used Fortran and Delphi extensively (my field was experimental physics). At some point, I switched careers and become a "professional" programmer, working on operating systems and embedded software.
Your code simply has (more) bugs. All those unchecked bounds, uncaught error conditions, etc. Your short functions probably work fine on most inputs you give them and, if they occasionally don't, with some luck you notice and you're there to fix them (or if you're less lucky, it propagates into some calculations and results unnoticed...)
I had a hard time accepting it the first time I was told. "But that's not a bug, it's "just" an uncaught memory allocation error." Yeah, that's a bug.
That defensive code probably has bugs too, but fewer bugs. It really depends on the field and the application, and the ease of update / consequence of failure, how fewer bugs you need. For production code, that runs unattended, where uncaught errors can have bad consequences, the 10x extra code is there. That's also why most of the tests focus on those edge cases (the main path will get tested heavily every time you're running the program anyway).
I don't mean your approach is wrong for you, it may very well be best for your use cases. But that "over-complication" is there for very good reasons.
Do your best to learn what’s needed and what isn’t. Much easier said than done.
My latest example is verifying JWT token. Works fine. Then just for some testing run with old token... Not verifying against any key I stored... Keys are pulled at start... And the service which sings JWTs might change them... Well now I needed to add logic to repull keys.
For long lived projects this sort of stuff happens over and over again. And thus more of these edge cases are added. And they are actually needed to solve some edge scenario. Even if that edge scenario can be very rare.
Code that needs to run in production environments has to deal with all sorts of issues that go far beyond just doing some sort of calculation. Scaling, concurrency, data integrity over time, maintenance over time, edge cases, code worked on by tags if people - all sorts of non-functional requirements which are not obvious to an amateur, which is what you are in this context.
If you're unfamiliar with all of that - as most scientific and ML programmers are - you're just not going to even recognize it when you see it, or recognize the need for it. And if you have the kind of personality that assumes anything you don't understand is unnecessary, you end up posting comments like the above.
I've often found that reframing the problem into a form that can be directly solved at a lower level often yields ai generated solutions that are actually robust and far more minimally coded ...
Leaky abstractions are worse than no abstractions remains true in ai coding age
java enterprise application programming is a meme almost everywhere, but in the middle people still write too many abstractions that in the end don't really improve the code or application.
there are programming styles that try to improve it.
but it's important to understand that source code complexity scales non linearly as a function of several things like features of your program and how much they can interact with each other. this will inevitably make the source code for almost everything more complex than a naked and isolated prototype or purpose-specific piece of code that can make more ad hoc assumptions.
This is why no one lets you touch production code. lmao
Your comment comes off as a little shaming of organizations that don’t meet your standards, which seems to be most if not all of them including most institutions. Which is your right, but it gives the ick.
Regarding the standards not met: That’s because it would be more costly and/or take more time. Correct software is expensive and takes time. I don’t want to shame everyone who has been cutting corners, but the state the industry as a whole is in regarding software quality after 50-ish years really isn’t praiseworthy either. We could and should do better.
Standards are dropping, fast. There's is no way to get what you wanted exactly from an LLM, you will 100% capitulate to the response if it comes within a margin of your expectations. That margin gradually widdens as usage increases.
I am not saying LLMs don't generate working code, they do. I use them all the time. But were basically on the exact opposite trajectory we were on 15 years ago. Everything written in high level languages and letting the machines improve performance, basically every startup being written in Python.
Now every startup is being written in Rust. However this time the quality of the implementation is garbage, which is okay since it's cheap to do again but only till a threshold of complexity.
Look at somewhat successful 100% Vibe coded projects like T3Code. It's a nightmare to use, riddled with bugs, getting updates every couple of days. Vibe coding is 600x-ing your velocity but the software being produced is nothing short of a dumpster fire.
There was good software and there was bad software.
It turned out to be the HP printer drivers... well actually the optimizing compiler used to create the HP Printer Drivers.... it decided that the floating point emulation could be unloaded once it was idle... but page layout (for print preview) used floating point, thus triggered the blue screens.
Once I figured that out (after a year+ hunt)... it got really, REALLY reliable.
Microkernels - which would have stopped any such crashes in the first place - were a popular idea in the 90s (due to a revival I'd say), but weren't very performant and in practice servers and desktops were made reliable enough without them. Google's Fuchsia is a modern example thereof.
Where? Lol
All of our massive "reliable" software is currently being torn apart by AI. All the vulnerabilities that have existed for decades, hidden, are being found.
Further, show me a bug free piece of software. You can't. Because humans absolutely suck at writing software. It's so hard to do reliably that it's fairly safe to call it impossible for a human. We can do a decent job, sure. But the best software in the world is bug ridden and vulnerable.
So no, humans are absolutely incapable of creating massive, reliable software.
Source: The past 6 months worth of zero days.
The browser you're using, the OS you're using, the firmware linking it to your hardware, the networking stack allowing you to post this comment... they're all massive reliable software systems.
Sure, they have bugs and vulnerabilities. But at this scale it's practically impossible not to. Especially with changing requirements and behaviors.
The security bugs found (there were worse in the past) is a passing phase, and in any event, a result of using insecure software languages that humans could have avoided and in many cases did avoid.
I still haven't seen AI 'tear apart' software actually written with secure practices (or at least by people who pay attention to security and not just features) - memory safe language, separation of concerns, least privilege principle, auditing, etc.
If AI can tear down everything, well, there's a lot of free money in crypto circles for it to take, right? Or perhaps software was done just right enough to avoid this.
Two ways: 1) Software-based businesses optimize for profit, not quality. Physical-world engineering is as good as it is because of a couple hundred years of effort, the inherent limitations of the resources used for building, and legal liability/accountability/regulations. 2) The software industry's lack of required formal training and apprenticeship led to an influx of workers who lacked the same knowledge, expertise, and commitment to excellence that made software less-bad in previous decades.
> Have we just completely overestimated the human ability to write software?
No, we've known for decades the limits of humans' ability to write software. There are books on this going back to the 70s. But nobody who writes software today has read them.
> Or will software engineering 'catch up' once LLM harnesses get better?
No, because 1) and 2) are the same as before. The business doesn't care if the software is crap, and the people running the AI agents don't know how to make it better. AI can't read your mind; you have to explain to it what you want, and how it should be done, or it'll just do whatever it feels like, which isn't necessarily what you want or need.
The idea is that a formal spec exists and AI generates code from that. Then when an attacker discovers a vulnerability, you can generate code again without needing to wait on the project maintainer.
If the spec plus the AI is sufficient to generate software without the vulnerability, why didn't it just do that originally? Why would doing the same thing again fix anything?
Instead, the formal spec needs to be updated to add "and don't have this vulnerability". Which can be done, but now you're back to coordinating with the maintainer. The maintainer owns the spec. What's really happened is that software is now written in a different language, a formal spec language instead of a traditional language.
If you don't want to wait on the maintainer, you could just change the spec yourself as a temporary measure. But that's also not anything new. With traditional software, you can patch the source without the maintainer's involvement as a temporary measure.
"What's the expense of getting simplicity? ... one of the things that's worked the best the last three or four hundred years, is you get simplicity by finding a slightly more sophisticated building block to build your theories out of. It's when you go for a simple building block that anybody can understand through common sense, that is when you start screwing yourself right and left, because it just might not be able to ramify through the degrees of freedom and scaling that you have to go through. And it's this inability to fix the building blocks that is one of the largest problems that computing has today in large organizations, people just won't do it."
Thanks for posting it!
What evidence is there that a diverse system is better than a homogenous one? This is pretty non-sensical.
I think that’s right and I think Omarchy is making headway on that.
In our new reality, module distribution has changed. We no longer need to obtain a module as-is from npm or whatever package manager... We can just get AI to pull it from another repo and make any necessary adaptations. The AI becomes the new npm and it's not a straight copy. Modules are more like blueprints rather than ready-made parts.
That said, modules still benefit from having simple interfaces, high cohesion, loose coupling. The ideal code doesn't look any different than before, it's just that the ideal distribution mechanism for it has changed. The design of the module significantly influences the logic surrounding it and that's why code quality still matters.
- Tony Hoare
The second biggest problem is null terminated strings.
The fourth is off by one errors
We are at the brink of ultrafast AI models that can go so fast that we don't need much of a process in the middle anymore. A vast amount of this complexity is going to vanish overnight for the more adventurous enterprises.
That seems somewhat tautological. Software is complex because of the large amount of time that is necessary, but a large amount of time is necessary because how complex software is.
It's like saying that cars are too complex for people.
You can use a thing without having complete control over it.
We used many tools across many industries for sometimes hundreds or thousands of years, even without having a deep understanding and perfect control over them.
Asking if it is too complex for humans is not the right framing for the discussion.
The "yes" is that we are frankly barely able to cognitively keep up with even simple software. With our attention being able to be allocated to 7 +/- 2 items, even at the high end of "10" we have an awful lot of our attention allocated to context even in the simplest of code, leaving not much left over for managing the code itself. We only survive when we are deeply nested in some framework and interacting with some other thing we are interacting with deeply by selective ignorance, a whole lot of being wrong, and good processes catching our human foibles, because even the best of us run out of "brain registers" fairly quickly.
The "no" is that software, even now in the agentic AI era, is coevolved with software engineers, so despite how much better we could be at it with just a few more "brain registers" in our heads, it was all designed to work with us. Software can't have been too complex for humans if humans were creating it, and as fashionable as it is to wring our hands and self-flaggelate for social approval, it wasn't all bad.
AI has not yet really wrecked this yet. It has more than 7 +/- 2 things it can "pay attention" to at once, but it is also not exactly the entire context window, either... it definitely gets distracted and has limits. Further it trades that increase in attention for a generally lower level of skill and understanding in other dimensions. If I could type and think as quickly as AI and keep track of as many things as it can, but also write at my own current personal skill level, I would be getting a lot more done than I do today.
The AIs of 2030 or so though... that's going to be interesting. A lot of our "best practices" are centered around handling our limited cognition, and current AIs share enough of our foibles that they still work for them today, too. A fundamental architectural breakthrough in AI or sustained incremental advances in size and the "optimum" complexity for a lot of things may slide up past human comprehension.
Seriously just put everything in the stack and you are almost golden.