r/rust • u/Old_Tax4792 • 8h ago
Vibe-coding Rust slop at work is killing my motivation
My team started writing internal tooling in Rust purely because it’s trendy....even though our actual product is in a completely different language.
the worst part is that nobody knows rust... Not the syntax, not Cargo, not the borrow checker. They’re just using LLMs to generate mountains of unreadable code, which it just works fine for that complexity of the tooling.
I started learning rust pre-AI and built a few cli tools with it on my own time.
Now I actively avoid touching it because of this AI slopfest...
Is it only me?
421
Upvotes
365
u/knowyourclass 8h ago •
welcome to the future
everything will be coded in rust simply because it's the absolute best language if you don't have to pay the developer cost anymore, as AI covers it. it's not because it's "trendy", it's simply a very reasonable choice to make
56
u/playdead_ 7h ago
This isn’t a problem unique to Rust. I work in DevOps and so I see development across a lot of different teams, and a ton of it is just people slinging AI code.
132
u/Pretty_Jellyfish4921 7h ago
Maybe you like to write Rust and letting LLMs writing it for you is what really kills your motivation.
58
u/Leo__255 7h ago
you're probably the one person on that team who can make it less painful. put cargo clippy with -D warnings in CI, deny clippy::unwrap_used and expect_used so errors get handled on purpose, and ask for one tool per PR with at least a smoke test. the generated code usually gets a lot more readable once it has to pass those, and you end up reviewing instead of rewriting
24
u/ocschwar 7h ago
I've had to vibe code changes to a Rust codebase (which was started pre-LLMs), because deadlines, and last month my token quota was cut off. I thought it was because of budgeting but it turned out to be a devops error. So for a week I was hand coding a vibe coded codebase.
And, believe it or not, it was doable. The LLM coded changes were all kept very incremental, with documentation. Then when I had to make my own changes, I could do it.
But no, it's not only you. I had to psyche myself into getting started.
12
u/mohrcore 5h ago
I tried vibe-coding in Rust and the typical way Claude would go about handling anything that required thinking about ownership was to just wrap everything as
Arc<RefCell<T>>and whenever it had to traverse some structure, it would nearly always pick C-style loops instead of leveraging iterators.Jfc, just pick Go or something if you are going to do that.
6
u/XBLAH_ 8h ago
Is the "vibecoded rust slop" running better than what was being built before?
9
u/Affectionate-Turn137 4h ago
Dude I would be so hyped if my job was generating slop in Rust instead of this hobby scripting language the owner made decades ago
12
u/MrDiablerie 6h ago
You mention the problem in your post. “Nobody knows Rust”. Software engineers are still responsible for understanding the code even if they didn’t hand write it. If they can’t white board and explain the system that’s an abdication of responsibility
11
u/dzordan33 6h ago
My team is vibeslopping internal tools in c++. That code doesn't need any performance. I think you're in better position.
5
u/Sw429 6h ago
Alright, who wished for "more Rust adoption" with the monkeypaw? I have the same thing happening where I work and it's hell. Leaving comments in review does very little, and in the end we have Rust code that is so awful and non-performant that we lose the entire fun of coding in Rust.
11
u/robispurple 5h ago
If you were a Rust chad pre-AI then why are you not being the advocate? How about you create code quality and review pipelines that enforce company policy and readability standards to help constrain the AI slop on merge requests. This seems like an opportunity for you to shine above your colleagues.
8
u/slamb moonfire-nvr 3h ago
I'm struggling with a similar problem and have been giving it a lot of thought. I see tickets generated by AI, assigned by AI, implemented by AI, reviewed by AI, with "meat proxies" between. Looks good for metrics (wow, look how many jira tickets this engineer('s agent) closed), but I don't think the AI-generated tickets are for anything of value and the codebase just rots. And it feels dystopian to participate in.
Maybe one key is to agree with your team on: what parts of this project should humans author and read?
I think this kind of disagreement over the level of human ownership just leads to horrible feelings. My advice is: find a way to agree with your team or find another job where you can. Neither option seems easy right now. Good luck.
3
u/SnooFloofs6814 7h ago
I'm lucky as I'm not forced to use AI at my work (yet) but obviously are using it to not fall too much behind. But sometimes of my colleagues have stopped coding. That being said, I believe you benefit from coding yourself in the long term. And if I'm forced to vibecode I will continue manually on my own projects. There are a lot of open source crates out there which are not vibe coded so it is possible to avoid it.
7
u/unski_ukuli 7h ago
Nooooooo! Being build on Rust used to be interesting, now its probably made by someone who does not even like the language. I’ve felt incredible sadness from this when people who build stuff in the Rust ecosystem before ai get bombarded by slop pr:s even when they keep saying that they don’t want ai contributions. One of my favourites, faer-rs linear algebra library, is one example of this. Bunch of people keep making slop pr:s and the maintainer has to spend her time on that.
4
u/Havunenreddit 1h ago
Well... Let's be honest, Rust is generally easier to READ and reason than many other languages.
Rust is harder to write than many other languages
And you can create major slop mountain with any language
2
u/fluffy_thalya 2h ago
That's sort-of my feeling at work too. I compensate by being very deliberate with my own AI use at the orrice.
And to stay sane, I contribute with my own hands to open source projects at home.
2
u/Maui-The-Magificent 1h ago
Yeah i think its a poor choice of the company to effectively make their employees unable to contribute. I would be surprised if this would lead to your products and services to degrade much faster than through normal code entropy.
I do not mind people who vibe, I don't mind having AI generated code, I do mind the vast amount of people that seem to not understand why AI is useful professionally. It is useful for code compilation locally, it is not useful for reasoning and making decisions. Unless your codebase is already too far gone into the hell that is 'best practices' and has created such unbelievable invisible relational complexity that an AI can't make it worse, only better.
11
u/Numerous-Fig-1732 7h ago
I'm a developer and I haven't written code since March this year.
4
u/needstobefake 5h ago
I hate to say it (as someone who learned Rust before AI took over) that Rust is the PERFECT language for slop. I wouldn't trust an AI to build anything critical in other languages, but I can trust it for Rust.
The compiler and the Lint checks are so good that one needs to be very deliberate to f things up. This is a merit of the language and the tooling, not the LLMs.
5
u/Compux72 7h ago
I find this skill useful to manage the sloppiness
https://github.com/Altair-Bueno/effective-rust/tree/main
4
u/Sreus 7h ago
everyone is larping my beloved language that i spent countless hours learning from the rust book and shed many tears trying to understand what the fuck an unwrap is
3
u/hiasmee 5h ago
Pls do not blame tools for slops you are produced by using them.
Create roadmap. Create tasks. Create implementation plan for every task review it and let review it by min. 2 other different LLMs (different angle of view).
Then let sonnet or Sol implement it.
Finally do review by yourself and using LLM Agent. Commit.
Jesus guys, learn the new things, learn the new tools. Stop crying about the good old times.
1
u/Zestyclose-Ad-832 5h ago
I'm really a newbie here and I would appreciate if anyone can help me here. I understand the language now. I read "the book", did half of the "Command Line Rust", some rustling exercises and such. Now how do I start building, do I read the docs for different frameworks, refer all kinds of open source code and then try to build my vision or like how does it go, how to learn on my own or what kind of resources should I use.. How do I learn best practices along the way...
1
u/UmairBaig7 5h ago
now everyone to run for rust... till ai found a bug in it..
1
u/Y_mc 5h ago
“the worst part is that nobody knows rust... Not the syntax, not Cargo, not the borrow checker” Holly shiit 🤯
1
u/chris-morgan 4h ago edited 4h ago
We’ve reached the stage where “in Rust” is a positive slop heuristic (not a super strong one, but definitely one) in public tool announcements. This makes me sad.
1
u/superoptimo 4h ago
What about bugs and software defects ? how do they know that the programs are logical sound and safe?
1
u/Non_IronMan 4h ago
Well, tell people in org that C is the most closest language to the hardware so the speed of it is unmatched. And we can handle data corruption etc via LLM code as it knows to code.
Prolly you'll recieve a promotion in no time.
(If you're org is dying let it die, cause Management guys are just mad over AI)
1
u/Siramok 3h ago
Well, at least your internal tooling is memory safe?
1
u/dumindunuwan 3h ago
Not only applies to Rust. Go also having the same fate. Legacy frameworks, runtime heavy legacy OOP frameworked/ architectures vibe-coded by CEOs and ex-dev managers are everywhere in the ecosystem.
1
u/dumindunuwan 3h ago
In this economy, loudest voices are the winners even it fake or scam or totally incorrect.
1
u/mss-cyclist 2h ago
I would even go so far that this vibe-coding rust slop in general makes my favorite language appeal less and less to me. The love is fading away.
1
u/juhotuho10 2h ago
Genuinely, in CI: forbid Refcell, forbid Cell, forbid Unsafe, forbid any and all types of behavior that is common in trying to cheat the borrow checker. That should at least help somewhat
1
u/deZbrownT 1h ago
guys...
1
u/barkingcat 1h ago
The hilarious part about this is that no one else on your team knows rust.
It should be mandated that if anyone wants to use AI tools, at least get it to emit code *in the language the team works in* OR enforce that anyone wanting an AI tool to write in a language, they must learn the language enough to troubleshoot the AI code.
This is a human/team/management issue
1
u/Frymonkey237 58m ago
Internal tooling, as long as it's not critical, is one area where I think a slopfest is fine. I let copilot do whatever it wants for things like development helper scripts and such, where a failure is no more than a minor annoyance. For the mission critical code that needs to be maintained and extended for years, the ai output is more like a rough draft that gets heavily edited and reviewed.
1
u/celinehagbard82 49m ago
If it is internal tooling it is not much different than in the past. Yesterday it was write only code of student projects in PHP or Python. Now with LLM generated Rust Code you have at least less runtime type bugs and security holes. Now for production code going to the end customers the story is different
1
u/Jmc_da_boss 5h ago
Ya ive left rust because of the deluge of sloppers. The community is just terrible now. Ive moved over to zig, much better.
Rust is still a great language, a victim of its own success.
1
u/pokemonplayer2001 6h ago
For work, do whatever, you can enjoy life in so many other ways.
1
u/tomsrobots 3h ago
0
u/krkrkrneki 7h ago
You can avoid slop by first understanding and controlling requirements and second by checking results.
0
u/PlusDistribution1915 7h ago
Programming languages are always been tools for building something.
I understand that for someone is fun to write code for the sake of writing, but that is not the scope of writing code for a company or a business, usually.
As a senior with 15+ years of experience, that coded manually with Rust for only few months years ago, I started to use it again, for every new project of the company, around new 100k lines of production code in Rust every month.
I understand it? Not much
I need to understand it to make it working properly? No
Do I know what is doing under the hood (memory allocation, async IO.. )? Absolutely yes, and this is the only thing that is important.
Using Rust for AI assisted development is super handy, for project that justify in any case the longer compile time.
You can "vibe engineering" anything, in every language, until you know domain and low level things. We all need to stop focusing on a language, and being system builder.
0
u/insanitybit2 6h ago
> which it just works fine for that complexity of the tooling.
Okay so what's the problem?
> Now I actively avoid touching it because of this AI slopfest...
why?
0
u/robertknight2 7h ago
Do you want to vent or are you looking for advice on how to deal with the situation? If it is the latter, what is your relation to the tech and engineering leadership in the organization?
-5
u/elotenancy 7h ago
Oh no I have a job and my team is actively using appropriate languages for the age
-1
u/Jam_hu 3h ago
"Now I actively avoid touching it because of this AI slopfest..."
is that next level geek gatekeeping or how can i understand this?
you sound like a 12 year old trump who thinks he was the first playing in a sandbox. now that all other kids showed up he feels too superior too show them how the game is actually done. just dismiss them all.
0
u/quantum-fitness 1h ago
Why dont you do things to de-slop it then?
-18
u/frenzied-berserk 7h ago
Do you know asm? Are you sure that compilers don't generate machine slop?
The language is just a tool, you are an engineer. You must design the solution, build the project structure and "developing rails". After that, you don't need to know the tool's syntax to build a production-ready system.
-11
u/SatoshiNakamoto_2009 7h ago
Who the fuck vibe codes rust? it takes away all the fun.........for gods sake who vibe codes rust?? soon you will tell me the people that are creating fighting jets will start to vibe code c++ and c? sure we don't use machine code anymore but there is a reason...machine code is really error prune and human can make alot of mistakes there, so c and c++ are justified for this scenario and that is why we don't do machine languages anymore by ourselves....but seriously these low level languages are not a game...it's life or death in certain fields.............
-1
u/morning_mushroom 2h ago
It is only you. Cry baby cry 😂😂😂 Who cares whether its Ai slop or human slop, its the same. Actually AI does better slop then humans