logoalt Hacker News

aidoslast Friday at 10:00 PM16 repliesview on HN

Yesterday my 8yo prompted (using voice recognition) Claude to make a game where it would play her a song (say Twinkle) and she had to play it back and get scored. The UI was a nice piano with visual feedback. The laptop key served as the keys until I prompted for midi support so she could use the electric piano. The whole thing took about 15 minutes.

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.


Replies

bdcravenslast Friday at 11:19 PM

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

show 9 replies
m463last Friday at 10:12 PM

I wonder. I remember before emissions, what's underneath a car hood was relatively organized and simple. Then with emissions it became a maze of vacuum hoses and so much other nonsense.

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://github.com/seL4/seL4/

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.

show 4 replies
jpcomyesterday at 4:27 PM

She's 8 years old man cut her a little slack on the code aesthetics ;)

show 1 reply
jasondigitizedtoday at 12:52 AM

Why would code be a burden when LLMs are the worse they will ever be today?

david-gpuyesterday at 12:57 AM

> Meanwhile, one peak at the code and you can already see the state starting to become a bit of a spaghetti mess.

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.

show 1 reply
reidjsyesterday at 5:27 PM

In what world would this be a future burden? It's just a throwaway fun project lol

show 3 replies
pjmlpyesterday at 7:06 PM

Those of us involved in offshore projects already know the feeling.

blargeyyesterday at 2:35 AM

Picking over the theoretical maintainability of one-off tools and toys that were generated in minutes by what will soon be an outdated model, feels very...missing the forest for the trees, when it comes to speculating about the future impact of this stuff.

budsniffer952yesterday at 6:49 PM

>Meanwhile, one peak at the code and you can already see the state starting to become a bit of a spaghetti mess.

What does this even mean? Does the software run? Did you plan on extending it? Maybe turning it into a "platform"?

Why doesn't HackerNews understand software exists to solve a problem? No one cares if code is pretty if it does the job. You can talk about "potential issues" until you're blue in the face. It doesn't matter.

show 1 reply
orbital-decayyesterday at 2:54 AM

That's the kind of thing I learned actual programming for, at the same age.

ButlerianJihadyesterday at 7:37 PM

This is the finale of Close Encounters of the Third Kind

And also the 1980s electronic toy, “Simon”

eatsyourtacosyesterday at 7:20 PM

>Meanwhile, one peak at the code and you can already see the state starting to become a bit of a spaghetti mess

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.

jlaroccoyesterday at 7:16 PM

> Meanwhile, one peak at the code and you can already see the state starting to become a bit of a spaghetti mess.

So it's on par with humans, then.

magic_hamsteryesterday at 6:24 PM

The job of code like this is going to serve as a makeshift spec for future coding agents, so they extract the intended use and redo it on command. Better models will be able to improve the actual code until you hit some diminishing returns for the problem you've solved.

gxslast Friday at 11:15 PM

Yes but it’s far better than anything anyone, let alone a small child, could make in 15 minutes

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

show 2 replies
antiiyesterday at 3:43 PM

[dead]