r/rust • u/Old_Tax4792 • 1d 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?
662
Upvotes
533
u/knowyourclass 1d 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
103
u/playdead_ 1d 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.
195
u/Pretty_Jellyfish4921 1d ago
Maybe you like to write Rust and letting LLMs writing it for you is what really kills your motivation.
82
u/Leo__255 1d 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
19
u/mohrcore 22h 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.
22
u/Affectionate-Turn137 21h 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
29
u/ocschwar 1d 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.
20
u/MrDiablerie 22h 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
17
u/dzordan33 23h ago
My team is vibeslopping internal tools in c++. That code doesn't need any performance. I think you're in better position.
4
u/XBLAH_ 1d ago
Is the "vibecoded rust slop" running better than what was being built before?
6
u/Sw429 22h 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.
17
u/robispurple 22h 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.
9
u/slamb moonfire-nvr 20h 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 23h 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.
3
u/Rayyze_ 4h ago
Let's be honest, give AI to a good developer and it will produce high quality code. The problem remains between the chair and the keyboard.
7
u/unski_ukuli 23h 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.
5
u/Havunenreddit 17h 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/superoptimo 21h ago
What about bugs and software defects ? how do they know that the programs are logical sound and safe?
2
u/fluffy_thalya 19h 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 17h 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.
2
u/vazark 14h ago
Learn rust.
Then you’ll actually know what to prompt for efficiently. At my work’s web application, I am able precise the file and changes to be done with technique to be used. Makes me a multiple times faster than my juniors
10
u/Numerous-Fig-1732 1d ago
I'm a developer and I haven't written code since March this year.
5
u/Compux72 1d ago
I find this skill useful to manage the sloppiness
https://github.com/Altair-Bueno/effective-rust/tree/main
4
u/needstobefake 21h 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.
4
u/Sreus 1d 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
2
u/hiasmee 22h 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 22h 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 21h ago
now everyone to run for rust... till ai found a bug in it..
1
u/Y_mc 21h ago
“the worst part is that nobody knows rust... Not the syntax, not Cargo, not the borrow checker” Holly shiit 🤯
1
u/chris-morgan 21h ago edited 21h 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/Non_IronMan 20h 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 20h ago
Well, at least your internal tooling is memory safe?
1
u/dumindunuwan 20h 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 20h ago
In this economy, loudest voices are the winners even it fake or scam or totally incorrect.
1
u/Natterum 19h ago
At my workplace, it’s getting to the point where communication will soon happen only through intermediaries, rather than through direct dialogue with colleagues. Motivation is plummeting by the hour.
1
u/mss-cyclist 19h 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 18h 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 18h ago
guys...
1
u/barkingcat 17h 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 17h 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 17h 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/ixid 15h ago
Do you hand write assembly code? I look at it as another stage in the evolution of compilers, but I'm more interested in the result than the craft.
1
u/DavidXkL 14h ago
Yup I often see abstraction for the sake of abstraction in LLM generated code 😂
1
u/Gunnarz699 14h ago
If you HAVE to use vibecoded rust turn on clippy pedantic. It will at least keep it consistent for review.
1
u/Moogly2021 13h ago
You can make it a point to review the code and become the only viable developer if the company ever scales back on ai
1
u/SailingToOrbis 13h ago
One of my collegues did exactly the same thing and boasted with confidence that this Rust rewriting achieved high performance than its original source code written in a different languague. Hardly readable, obviously vibe coded, which I thought I could write in much less amount of code in script languages to achieve the same goal. So much slops and non-expertise culture are ruining the industry.
1
u/boiledbarnacle 12h ago
Do you work at 37signals?
1
u/puffyfunion 11h ago
Hear me out. Ask your agent for advice, but do everything yourself. Don't let it write a single line of code for you.
1
u/UntoldUnfolding 10h ago
I find it simply hilarious that this is the new trend with companies. I get why it’s pragmatic, but why not use the same AI to make sure the developers can actually read the code and know what it’s doing?
1
u/not-a-random-guy 8h ago
I mean when you know syntax eventually, it would make sense. Until then its magic. 😅🤣
1
u/FitBoog 7h ago
Just one thing I disagree with you. Rust is not trendy. Rust was built and designed to be exactly this.
1
u/rarecold733 4h ago
did this thread get posted on xitter or something? this is some of the lowest quality conversation I've seen and the bar is pretty low
1
u/PlusDistribution1915 23h 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.
1
u/Jmc_da_boss 22h 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 23h ago
For work, do whatever, you can enjoy life in so many other ways.
1
u/tomsrobots 20h ago
0
u/krkrkrneki 1d ago
You can avoid slop by first understanding and controlling requirements and second by checking results.
0
u/robertknight2 1d 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?
-1
u/insanitybit2 22h 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?
-6
u/elotenancy 23h ago
Oh no I have a job and my team is actively using appropriate languages for the age
0
u/quantum-fitness 18h ago
Why dont you do things to de-slop it then?
-2
u/Jam_hu 20h 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.
-19
u/frenzied-berserk 1d 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.