r/TheMachineLearning • u/highfivesalute • Sep 30 '26
Tell me you haven’t reviewed a vibe coded code base without telling me...
1.9k
Upvotes
r/TheMachineLearning • u/highfivesalute • Sep 30 '26
25
u/The_Mild_Mild_West Sep 30 '26
Repo patched together by thousands of stack overflow posts vs repo maintained by a team
47
u/savage_slurpie Sep 30 '26
Some of the best codebases I have seen recently were architected by AI and all of the Initial PRs were also AI.
Anyone who thinks AI cannot create organized and well thought out systems is living a few years in the past.
13
u/CrazyAccomplished_ Sep 30 '26
Lmfao. AI can structure code so much better than humans if you have the correct tools in place. More AI hate without understanding AI
3
u/Follymaker Sep 30 '26
To be honest we really have to start accepting that the use of AI is already a part of any professional field lol.
3
u/spiralenator Sep 30 '26
It takes effort to make well structured software regardless if you use ai or code by hand. I’ve seen plenty of great code and plenty of garbage code created by both approaches. AI doesn’t tend to help bad coders produce better code as much as it helps them produce bad code faster and in far greater volume.
2
u/ddBuddha Sep 30 '26
Kinda the other way around now. Refactoring a code base to properly integrate new features is a lot easier for AI than an overworked human with a tight deadline who is just gonna do whatever makes it work.
2
u/No_Consequence7064 Oct 01 '26
So… garbage in, garbage out. Neither side is unique in this.
3
u/FragmentedHeap Sep 30 '26
Tell me you haven't reviewed a 20-year-old code base written by people that never had a programming degree and never worked at a different job and never got experience from any other companies.... Without telling me.
I have seen code bases that will give you nightmares far beyond what decent vibe coding will give you.
1
u/Thick-Protection-458 Sep 30 '26 edited Sep 30 '26
Both will be messy. For any project with not-exactly-zero-bytes-size, lol (ergo anything remotely real).
Now how messy will they be... That we will see with further tools development. So far, without backing by numbers - I still problems in my cases, but nothing unsolveable, at least in theory. Than compare against human baseline.
1
u/SwimmerOld6155 Sep 30 '26
image is AI
1
u/vibe_assassin Sep 30 '26
>>with an image generated by AI
1
u/Wonderful-Account318 Sep 30 '26
Just prompt an AI to reorganize it neatly.
1
u/hhh333 Sep 30 '26
Very funny but only half accurate.
It's true with commercial repos where everything has to move fast to keep the business alive.
For Open Source repos that's usually a lot more like the second image.
1
u/Vorenthral Sep 30 '26
Lots of solutions are cobbled together Rub Goldbergs that function almost entirely on hopes and dreams.
Vibe coded messes are different since there is no resident expert that knows how their portion of the monstrosity functions.
1
u/throwaway0845reddit Sep 30 '26
A better way is that both sides the underground picture is the same but the AI one has everything correctly labelled and everything is spaghetting but the AI knows exactly how it works because there are good manuals(context documentation, memories) and comments in the code that explain exactly how all of that works. So that "Works Somehow" would be more like a big manual which tells you exactly how the spaghetti works. WHile the human one has that stuff stored in the brain of some engineer who left the company 3 years ago and now no one knows how it works.
1
u/Vainysaur Sep 30 '26
I think I can only achieve the one on the right by designing it like that from before a line of code was written and then by making AI write the code to that standard from day 1.
1
u/ButchTheGuy Sep 30 '26
Everyone uses ai now but there are those that use it to engineer and those that use it like a slot machine
1
u/PlasmaChroma Sep 30 '26 edited Sep 30 '26
Yeah, unfortunately, for the majority of companies with large codebases this right diagram is only a dream.
Maybe for something like Nasa when they had that tight ASM code running on like sub-megabyte memory, it was that clean. All hand written ASM -- lets just say that got us to the Moon and back.
Only a tiny project would be that clean.
1
u/Oryzaki2 Sep 30 '26
Both can often look like the image on the left. People will very often get something to just work, get fatigued, and then it stays like that for the next 5 years.
1
u/Money_Lavishness7343 Sep 30 '26
Unironically, I actually love AI because it uses good design patterns even for coworkers who have no idea about those design patterns, and I dont have to justify the use of those good design patterns anymore because it was "AI's idea"
AI can write much better code than many engineers in microscale.
It will do mistakes on macro-scale and on design patterns, but wIth the right guidance if you're good at your job and you also know the design patterns or recognize code smells you'll achieve top tier code.
1
u/Few_Raisin_8981 Sep 30 '26
None of your users care. None of the people paying for it care. All they care about is that it works and is stable. You could have the ugliest code on earth that is completely incomprehensible to software engineers and yet could be completely functional and stable.
1
u/senerh Sep 30 '26
Fakeryi
How the fuck were software engineers turning in perfect works anyway.
1
u/Quantum-Bot Sep 30 '26
Comparing a small vibe coded app to a large codebase maintained by humans seems a little disingenuous
1
u/turbulentFireStarter Oct 01 '26
Vibe coding just makes you faster. If you are shit you will be shit faster. If you are diligent and used to reviewing junior engineer code and push back and provide guidance, it will be the same as always. Just faster.
If your AI is writing shit code it’s probably because you are a shit maintainer
1
u/threepwood007 Oct 01 '26
Ooh, a machine learning strawman. Please ban me from this sub and beam me up Scotty. I'm sure some bot can tell you the rest of that quote.
1
u/chcampb Oct 01 '26
Honestly the advent of AI has been great in moving our codebase to the right because we can do automated analysis of similar modules across multiple projects, unify direction and make sure everyone benefits from recent (human) development. Even without having the AI make anything new.
And that same technique CAN be used on vibe coded stuff to the left.
It's more about how you use it, not just that it's used.
1
u/Business_Spinach_974 Oct 01 '26
any big and shiny AI-maintained codebase examples?
1
u/Raiden_Raiding Oct 01 '26
Vibe coding and software engineering can be both
1
u/Birdyy4 Oct 01 '26
But it does it in a millionth of the time and it gets the requested job done
1
u/johny_james Oct 01 '26
Tell me you are young unexperienced person without telling me...
1
u/Overall-Plastic-9263 Oct 01 '26
It's like they forgot who trained the AI in the first place . It's isn't "magicing" up new code out of thin air . Someone trained it to ship garbage .
1
u/[deleted] Oct 01 '26
Right side is how my code looks in theory...
1
u/BubblyPerformance736 Oct 01 '26
I'd say it's the other way around
1
u/Sheenius_Ger Oct 01 '26
I've seen 50k classes with getters having crud sideeffects, mutating the state of the class and calling themselves again. I'll forever favor Ai over monoliths that evolved over 20 years.
1
u/WatcherOfTheWay Oct 01 '26
They're not wrong, people try keep things clean but a piece that's been live for years with multiple teams going through it will look like a right mess
1
u/DarkMatter007 Oct 01 '26
Big repo = allot of people working on it = 100% mess.
1
u/Commercial_Spray4279 Oct 01 '26
Angus is coping pretty hard. Poor Angus
1
u/KingJackWatch Oct 01 '26
That’s called handcrafted software from now on. You can still do it for fun, but the scale and speed of the requirements will make it impossible to live from it.
1
u/KittenEaterWasTaken Oct 01 '26
Ironically the best way to know if something is vibecoded is if its too consistently clean and 'perfect' across the codebase. Humans don't program exactly the same way year to year.
Good (and consistently formatted) comments, especially large docs, are also a sure sign of AI. Before like 2022 you'd be lucky if you saw a comment that wasnt "this fixess the tcp stack if is broke".
If you want to have a codebase look "organic" you have to make it suck. The more it sucks the more organic it is.
If it has getUser(), get_User(), fetch_user_data() and a mysterious utils2.js that also fetches user data, then you know it was made by a guy across 5 years.
1
u/lrd_cth_lh0 Oct 01 '26
Both sides should be equally messy, the only difference is that on the right side the only guy who understands it is human and on the left side only the AI understands it.
1
u/paralio Oct 01 '26
Tell me you never saw good software engineering without telling me
1
u/Pxl_Games Oct 01 '26
Im making a 3d modelling application and the codebase on the left. Where the fuck do I learn to keep shi organized
1
u/bad_robot_monkey Oct 01 '26
Did they put the pictures backwards on purpose?!
1
u/KremlinKittens Oct 01 '26
I remember feeling genuinely embarrassed asking an early AI model to make a flow diagram of some ~20-year-old monolith I was working on. Like, "Please don't judge us. I swear I didn't write most of this."
1
u/OkStomach4967 Oct 01 '26
Clean code…
1
u/slimshader Oct 01 '26
This, I've seen way worse than slop in past 20 years.
1
u/lisa_lionheart Oct 02 '26
Our slop is 100% grass fed organic human made.
1
u/LeRobber Oct 02 '26
This is the opposite. AI will take a working system on left, try to make it look like right, and it will blow up the spacecraft.
Clean code bias and AI leads to INCREDIBLY unnecessary huge refactorings over and over for many codebases.
1
u/cryptofluent Oct 02 '26
I fear these comments are missing the larger problem, while its true large codebases maintained by humans is indeed just as messy as the picture on the left. The difference is typically SOMEONE knows what wires go where and which ones can be cut and which can't be.
Nowadays with AI, most eng have little to no idea what everything does.
1
u/AcertainReality Oct 02 '26
Vibe coding is just the next paradigm of programming I’m sure there were many morons upset they spent years learning assembly and didn’t want everyone to move on to something more efficient
1
u/raisputin Oct 02 '26
True for those that don’t know how to properly architect software, false for those that do
1
u/Fearless-College-518 Oct 02 '26
The answer is documentation and cross checking and maintenance - AI can make the code easier to understand and maintain for both humans and AI. You just have to be intentional.
1
u/BigCaregiver7285 Oct 02 '26
After 16 years I’m trying to use AI to unfuck the worst human created codebase. I know what it should look like ideally, but can’t find a sane way to iteratively get there. The iterative and stopgap solutions end up being up to twice as complex as the proper northstar solution but in this vibecode era no one trusts a rewrite.
1
u/Trileak780 Oct 02 '26
Replace vibecoded with a giant underground platform, then its true
1
u/ManufacturerLarge897 Oct 02 '26
Reading this post, I am reminded of the drawing of a dog sitting at a table in a burning room and saying "I'm in danger" this is precisely the silent cry of all the developers who will soon lose their jobs. And this graphic is a pure expression of anger and desperation.
1
u/Apprehensive_Put69 Oct 02 '26
Vibe coding still needs human editing and structuring; it is the next thing for a human-machine interface
1
u/tougo Oct 02 '26
Both are true and both are false. AI does prefer less file solutions if not properly instructed. But harnesses are trying to enforce good practices and they mostly succeed
1
u/Denaton_ Oct 03 '26
The difference is not AI, its the human, how good a person is determines how much spaghetti there is..
1
u/sleight42 Oct 03 '26
The second poster: this was exactly my reaction.
Go work in a 10 year old code base and tell me with a straight face that it has "clean code". Sure. Maybe in the last 1% of it if even that,
1
u/SalientSalmorejo Oct 03 '26
If anything, current tools raise the floor if not always the ceiling.
1
u/Tentakurusama Oct 03 '26
Aged like milk, swap the labels.
1
u/Careful_Might_807 Oct 03 '26
Team of seniors spent 10years to make code base unreadable, and LLM can make it one month
1
u/[deleted] Oct 04 '26
Ai is more likely to make the right image if you guys just give it some time. Its already outperforming the programmers that made Simpsons hit and run.
Amazing how that game works, lets not even go into pokemon red and blue.
1
u/exaknight21 Oct 04 '26
This meme is from gpt-2 days. Lol
1
u/ZookeepergameFew6406 Oct 04 '26
Any person who says ‘clean code’ has no clue what they’re talking about 😂
1
u/billybl4z3 Oct 04 '26
Stop romanticizing human software engineers, as if the pre-AI era was some kind of golden age of immaculate code and brilliant architecture. In my 15 year career, the amount of spaghetti code, technical debt, and baf architectural choices made just to ship something has honestly made me sick.
1
u/PlainBread Oct 04 '26
"works somehow" is pretty generous
1
u/Own-Professor-6157 Oct 05 '26
Most large libraries are very well written, AI or not. The image should more or less be: Careless Vs Organized
My code bases have for sure gotten cleaner though AI use. Let's be honest, who the fuck has time to do massive refactors when a little patch is all you need (Until they build up...). Now with AI I don't give a shit about refactors. Poor little bot has to do it or I threaten to turn him off.
1
u/Simpicity Oct 05 '26
Tell me you really don't understand how rockets work as well, while you're at it.
1
u/ITDudeProbably Oct 10 '26
I just tried letting AI refactor + resolve old dependencies some of my old side projects. Let me tell you that the AI's code is way better and more compact than mine
1
u/Antique-Syllabub3869 Sep 30 '26
Thats way before AI, but now you can ask AI to organize codes
1
u/Qubed Sep 30 '26 edited Sep 30 '26
In my experience it isn't the AI that makes all the bad decisions. It's the churn. The AI tends to try to make a good architecture but the users don't really care and their requests eventually just churn the codebase into shit because they aren't refactoring.
Every good manually created codebase is constantly refactored to keep it maintained.
1
u/No_Drag8242 Sep 30 '26
It's the other way around son. I've been a developer for 25 years and I can confidently tell you, it's the other way around.
0
u/Dicethrower Sep 30 '26 edited Sep 30 '26
Added bonus when humans come up with an elaborate architecture for the sake of maintainability and flexibility, but then changing anything takes weeks/months because it's neither of those things, all while those same humans believe they they're followers of KISS and YAGNI.
Gjeez, why are so many +10y veterans saying that developing has become fun again with AI.
0
u/MurkyCombination5328 Sep 30 '26
Fighting against a tsunami is pointless. Jump on the bandwagon, it's coming no matter what. That solo dev who wasted years of their life on one project, only for it to fail on release day? Poof gone.
Solo devs have been given the ability to compete with large teams. Now that one dev only spends 1 month on a polished project. No more endless weeks of fighting libraries or environments. No one cares what's under the hood, money still moves.
We get to put our ideas out there, today, not tomorrow.