302 points · by ilamont · 3mo ago · 226 comments
Meanwhile, one peak at the code and you can already see the state starting to become a bit of a spaghetti mess.
It’s a funny time to live through. A lot of code is being written and a lot of it is going to be a real future burden.
This assumes that the models of the future won't find it easier to just throw the code away and rebuild it
This also assumes that the same application build by humans wouldn't become a "spaghetti mess".
I have noticed this with co-workers also, when you have the ability to read/write/understand things very quickly, you tend to spend much less time on making things tidy, clear and maintainable.
Compare that to clean, organized code where patterns and extensibility are established. I’ve seen product manager surprised at how fast a new feature was added when everything is laid out well.
sometimes starting from scratch just faster and/or easier.
You use another AI to document the spaghetti.
You use the third AI to make a spicy meatball from the spec.
What about all the undocumented "adjustments" ("bug fixes" in a professional context) that were made to make it actually useful?
nah, it reflects on how applications built by humans usually do become spaghetti messes with all the resulting brittleness and unintended negative side effects of changes that result
but it probably doesn't matter for a little toy piano app
ed sp
Sometimes it seems like they're moving very slowly. That makes sense: It's easy to get used to how they work today and it is also easy to forget how much worse they were last year.
When we look back and realize that just 4 years ago these tools didn't really exist at all, it becomes clear that the rate of progress is rather amazing.
In 4 years, we've gone from "hah, good luck with that crap!" to "little kids writing music-learning games on their own in a few minutes"
That's pretty friggin' awesome, and it's not finished yet. :)
Since this is Claude, the models of the future might be more expensive, or more locked down, or might decide your 8yo is actually trying to build a cleverly disguised bomb so her request gets silently downgraded to a dumber model, etc.
Not you, of course. You write exceptional code with zero errors that never needs rework. I'm talking about the rest of us.
Today I don't always need to understand the code. When I do, I can ask the LLM to explain the code or to specify the algorithm in pseudocode or even re-write the code until I can understand it.
I think, as an industry, we haven't yet fully grasped the impact of agentic coding. We don't yet know what software engineering is going to be like in 5 to 10 years.
then ... in some places (maybe cars that people care about working on) it became cleaner again. In the other places, they added a second hood to hide the mess.
There is some clean code out there, like maybe the seL4 kernel:
https://en.wikipedia.org/wiki/SeL4
"with an explicit goal of enabling comprehensive formal verification..." (and lots more stuff)
maybe we can still have niches like this.
The purpose of a car itself didn't change. But the massive inflated demand, as our city planners decided every adult must be put in a rolling metal cage to participate in society, changed the environment it was originally designed for.
Now it's a matter of geopolitical stability, or even basic human habitability of these spaces, that a car converts as much of that chemical energy into movement, and releases as little toxic byproducts in the process. Whereas before, that cost, at scale, was small enough to neglect.
Just like a modern CPU evolved into an incomprehensible mess, even though the basic consumer needs hadn't changed much, because the politics of computing forced them to run expanding institutional cruft at reasonable speeds, on battery-powered always-on addiction machines.
Those cleaner looking engine bays are usually worse to work on. Not better.
When you open up the hood and immediately see lines everywhere, that also means they’re within reach. This is great.
The engine bays that look nice and clean for the showroom still have those same lines. They’re just buried in there. If you need to work on them you’re going to be reaching underneath things, climbing under the car, or even removing other parts to access something simple.
Also, it’s not all about emissions. A lot of those lines are for modern comforts like cruise control and improvements like features that make cold starts easier or make the engine behave better at extreme temperatures. Some of those have been superseded by electronically controlled versions which is why some of those lines are disappearing on modern cars, but the overall complexity has increased further.
another analogy would be opening some computers to add memory/ssd/hd, as judged by ifixit
That is how compiler-generated assembly looks to humans, as well. Human-produced is typically much more readable. Yet, here we are. Most programmers only know the very basics of assembly programming, but the world keeps spinning just fine.
2. Compilers and building tool chains change all the time. CI and automated testing catch any regressions. Tye same can be done with LLMs.
3. LLM code generation, with some work, can be made deterministic, if that mattered to somebody.
Well in this case, for the idea it was already in the training data. User said was out of ideas...trying to prop up the LLM smartness...
https://www.lifewire.com/how-to-find-a-lost-bluetooth-device...
https://android.stackexchange.com/questions/194584/locating-...
https://forums.macrumors.com/threads/i-lost-my-cellphone-som...
https://discussions.apple.com/thread/3317786?
And about the code...well...
- Complete Android code example specifically explains that Bluetooth RSSI can be used, cautiously, as a distance indicator. - https://mobile.fhstp.ac.at/development/rssi-messungen-von-bl...
- android-Bluetooth-RSSI-Scanner - https://github.com/TimingJL/android-Bluetooth-RSSI-Scanner
- https://stackoverflow.com/questions/22914532/ble-continuous-...
- https://github.com/alt236/Bluetooth-LE-Library---Android
These LLMs are mainly knowledge bases and compression engines.
And we thought it would be _visual programming_ that brought children to programming. Cool. Its logic.
If you're trying to get away from the burden of syntax or other onerous aspects of coding, well then just use an AI coding assistant. OTOH, if you (for some reason) want to learn a textual programming language, then write code in that language yourself.
Coding is a solution waiting for a problem kids don’t have yet. The answer is always “try a game”. But llm and logic can help children engage with the actual problems they have and what is flying around their little imaginations. Syntax and other code _constraints_ should not be the cost of entry.
I honestly think people on here are very much overstating 'spaghetti code' when AI does it... first, it works correct? The reason I say that if the AI can continue to upgrade code that might not always look 'the prettiest' (to you..) because it doesn't care about what some of us consider to look like clean code. If it can continue to manage, document, and upgrade the code successfully.. does you calling it spaghetti code actually matter? Maybe you have a hard time reading it but the AI certainly doesn't.. I think that's worth consideration.
Every one of us has our own conventions and ideas of what 'clean' code looks like sometimes. And honestly 95% of the time we only thing it's clean if we wrote it ourselves.
On the other hand an engineer might take a couple hours and build this in a clean way with the right prompting
These “got ‘em” ai criticism comments are getting so old
The fact that this is possible and works at all is mind blowing - even more mind blowing is that my 8 yo is growing up in a world where they can talk to a machine to produce a custom application in seconds and they don’t realise how mind blowing it is!
In terms of the code, it would take even less time than that to tidy it up. For this application you wouldn’t bother. That’s almost a form of “premature optimisation” unless you’re actually planning on doing more work on it.
My hunch is that what the world is about to see a lot of is much bigger bits of work, or changes to other bigger existing systems done by people without the skills to know how to contain the complexity. That’s going to come with a burden.
However, the latter is an exercise that lets you become an expert. The former – not at all.
A novice writing code by hand could also write spaghetti code
If you've worked in enterprise software, you might have seen that even competent professionals can write spaghetti code
At this point AI really is just garbage in garbage out
I don't think we'll be looking at code at all within the next few years. I know I already don't anymore. The code is not the product for me, and as long as any model, commercial or local, can maintain it (or recreate it), I'm fine. When I make a drawing in a vector drawing program I don't export to PostScript to see if they calculated the bezier curves correctly either.
I'm convinced most code will be ephemeral in a few years.
So it's on par with humans, then.
And also the 1980s electronic toy, “Simon”
The product as we know it is effectively dead. There is no future in which the URL bar isn't just an AI chat input. It's up to the model to search for you, if it decides that's the fastest way to an answer.
Anyway, yes, surely "search" will exist the same way RSS exists.
I can still find core material using an alternative.
Don't worry, Google is now embedding that AI into Android's core. Rinse and repeat, expect the same results.
I hate it.
But yeah, that doesn't mean they are doing much more than search.
They are doing more than search insofar as they are:
1. Reasoning about your question and trying to identify intent
2. Doing the search and accessing multiple search results for you
3. Formatting a response based on your intent and in the way you specify
This is collapsing many steps that humans used to have to do on their own. It's more ergonomic, and gets to a better answer, faster.
The upside is that telling said users to double-check the sources usually results in them realizing the AI overview was wrong, but it's still a waste of everyone's time.
The 2021-era of of just "Not finding the results" was maybe a better outcome.
But then ... posting to HN that you've used an LLM to solve a problem is OK?
Also, nothing sucks like Mouse Without Borders holy heck.
But you can just loop over something like `hcitool rssi "$MAC"` and project it somewhere, there's a variety of ways.
I like using dunstify with the -p option to persist on screen.
I think it's really impressive what these agents can do, but you should also consider whether you're asking it to burn tokens reinventing the wheel for you, or making a pretty wrapper around a wrapper.
two sentence horror
I make little tools like that all the time. My GitHub is filled with these little things I write or gen once never to be used again. Some of them I use daily (GitHub.com/dexterlagan). Since LLMs became decent I make even more of these. The more we move forward, the more people make things for their own use. I think it's cool. I see a lot of naysayers, but man, I have been waiting for this kind of tech since I was 10. Let's enjoy it I say.
It’s a standard feature on my Garmin watch. I can access it in a few button presses, sometimes two if it’s the last action I used.
Have done exactly this 15 years ago to find my lost phone (:
Also wrote a cheap 30 line shell script to allow playing videos and music to “follow me” from one room to another with well placed raspberry pi’s, 11 years ago
In my case, it wasn't able to come up with it, but fortunately I was, and had it build a local webpage that does "hot or cold" with a 0-100 score. And it worked first try! Found them in like 2-minutes.
Also made for a fun day of hot-and-cold hide-and-seek games with my niece after i had it built that concept as a sideloaded ipad app :)
sigh
its funny but also concering how many apps seems to become completly pointless very fast...
I now use my own video compositor to edit videos instead of after effects https://lowkeyviewer.com/studio/
use my own ecommerce and landing page builder for my businesses. that I use in production.
Cancelled by Strength App, Zwift for indoor bike trainer, and strava for running apps and built my own app that brings all 3 together and works better. https://coachsamsyn.com/
Among about 100 little smaller tools.
All of these are released and work. Some of them have other customers. One of them has 1000s.
There is absolutely no way I could have done all of this without AI. I don't really consider most of it too be slop, ive been an engineer for 20 years. I care a lot about the details and the underlying properties of the system. I had shipped my side projects years before AI that had real users so I have a good idea of what it takes to ship something end to end that people can actually use. It's mostly about the details and ease of use and the last 20% is the hardest. Some of us know that from our day jobs but it is different when you have to it all yourself and be responsible for every choice.
And I remember wanting something like this, thinking "this is so dumb, the sensor is here, I just need the code to extract the signal".
Well now you can just prompt for it.