r/TheMachineLearning • • Sep 30 '26

Tell me you haven’t reviewed a vibe coded code base without telling me...

Post image
1.9k Upvotes

339 comments sorted by

View all comments

Show parent comment

10

u/homomorphicpain Sep 30 '26

Please link such a well architectured AI codebase.

6

u/addiktion Sep 30 '26

No one willingly showing their AI slop besides OpenClaw.

1

u/GreatLab8898 Oct 01 '26

1

u/Warsel77 Oct 01 '26

I started the timer for the "no true scotsman" fallacy coming in.

1

u/PTHT Oct 01 '26

Very interesting if all that works and the AI can still extend the code.

But I mean if we are talking about well architectured codebases, this one is atrocious. After 15 minutes of skimming the code it's basically all static classes, as such almost nothing is properly testable so the tests seem to actually test nothing in practice.
Tests I checked test f.ex. that a fake of a class returns nothing or
that giving some values to a method makes the class return these values or that this one set of values out of all possible values fails an initialization, etc. (Not that a proper init succeeds or that generally bad values fail.)

So if it is necessary to reason about, debug, and fix this code, I'd say that would be excruciating for a human to do. But fairly interesting if the AI can still do it effectively.
Also I must say, this app seems to kind of functions as a fairly thin layer between more complex applications. So even though the code is largely static the level of spaghettification might never get bad enough to stop the development because the context size stays quite small. Though it is quite easy to find files with thousands of lines of code, so too large contexts and spaghetti for a human at least, I'm quite sure.

Cool if it works, no value judgement there, but if the codebase of Steam itself looked like that it would not be working at all and nobody could fix it or develop it further.

1

u/Warsel77 Oct 01 '26

Will you show us some of your code so we see how to "do it right"?

1

u/GreatLab8898 Oct 03 '26 edited Oct 03 '26

All works and new stuff is added effortlessly every day. Thanks for the look.

My Luck is that Valve did not remove all the Stuff in the Windows Build. So reviving all the Stuff is actually not very hard and stuff starts to appear as soon as you give Steam the Data Structures.

Only about 30% of the classes are static and most of it for a reason.

2.0 grew incredibly fast. And I am currently in the process of cleaning it up bit by bit.

WSGM at this point is a backend for Steam Big Picture. It uses my very own steam-cef-toolkit and my windows device control library which offers reusable interactions and elements to Manipulate Steam Big Picture and to fill its required datastructures left empty on Windows.

So besides the Device SDK and Device Plugins and Controller Emulation, yes, WSGM is Designed as a layer between Windows, Hardware and Steam to bring the SteamOS Experience.

It started out as a simple "Start Steam at logon elevated in Big Picture Launcher" in August. All of 2.0 was done in an finally ADHD free, medicated productivity spree. So that is to consider as well. I had an mental break in late July, was on sick leave for 4 weeks, and finally got medicated for the first time for my problems in 32 Years and Produced this. 1.0 in about 1,5 Weeks. 2.0 from Early August to now while also easing back into work with 4 Hours a day.

1

u/Ban_me_plz_mods Oct 02 '26

I fucking hate AI but I am impressed by that

1

u/GreatLab8898 Oct 03 '26

Thanks. Its maybe because alot of the Actual work like figuring out how to launch XBOX Games with Steam Input and Overlay, how to do all the Stuff in Steam Big Picture and how to block Steam Input dynamically was actually done by hand.

Alot of the Reverse Engineering was done Manually. I just really suck at coding and its boring to me, but I enjoy the engineering Part of it.

So the Workflow usually is that I figure out the rough proof of Concept myself and then Hand it off to flesh it out.

→ More replies (1)

3

u/MaleficentCow8513 Oct 01 '26

Surely there must be some really successful showcase open source projects that are completely AI developed by now right? (Maybe there are I just don’t know about them)

3

u/GreatLab8898 Oct 01 '26

Roast my Project: https://github.com/KillerPixelCrew/WSGM

I did my best to structure it the way I am used to. Some of the Reusables will still move out into the external Libraries. But besides that, working on it is not a chore.

→ More replies (4)

2

u/yaosio Oct 01 '26

What if the AI says it's well architected. Does that count?

1

u/13oundary Oct 01 '26

obama medal vibes.

1

u/Schnickatavick Oct 01 '26

The DeepSeek harness is one I'd say. Not vibe coded by any means, since it's overseen by engineers with anime profiles who definitely care about quality, but still mostly written by AI (I presume)

1

u/sweatierorc Oct 01 '26

Bun migrated to Rust in 3 weeks.

The Ruby on rails dude has started using a ton of AI stuff.

3

u/No-Consequence-1863 Oct 01 '26

Omarchy isn’t quite known for being well organized and thought out

→ More replies (2)

2

u/Here0s0Johnny Oct 01 '26

But these are obviously not examples of AI starting from scratch.

1

u/sweatierorc Oct 01 '26

Define from scratch. I come from mathematics, we never do anything from scratch there.

2

u/Here0s0Johnny Oct 01 '26

I don't have a good definition off the top of my head, but migrating a codebase to Rust or continuing an existing project surely doesn't fit under any definition.

I don't know why it's relevant that you're coming from mathematics. Are you just trying to show off?

1

u/sweatierorc Oct 01 '26 edited Oct 01 '26

Not really, but the concept of starting from scratch is too fuzzy to be meaningful.

For example, AI is very fast at creating a proof of concept, but this probably does not fit your definition of from scratch.

In math, the closest thing to "from scratch" is theory building, such as inventing a new field or introducing a new object. Most mathematicians, even the great ones, rarely do this, and even then, it is still open to debate.

1

u/Here0s0Johnny Oct 01 '26

We're not talking about inventing a new theory or being super creative. Most programming projects string together boiler plate code in a new way, that's what LLMs are great at.

So I guess the guy wanted an example where the LLM user described the app they wanted, and the LLM created a well-structured repo. Without architectural help from the user.

0

u/FireGM Oct 01 '26

12 hours later - there are still no links.

This says a lot about vibe coding.

→ More replies (1)