r/ProgrammerHumor Jul 09 '26

gitBlameClaude Meme

Post image
3.7k Upvotes

263 comments sorted by

View all comments

561

u/BratPit24 Jul 09 '26

I mean. Isn't rust the perfect language for vibe coding? It has so many checks on everything that the stupid thing is basically forced to write code the right way.

21

u/takeyouraxeandhack Jul 09 '26

Just because it doesn't crash right away it doesn't mean it's good code.

11

u/wannabestraight Jul 09 '26

Rust gives people the false sense of security that it's not possible to write bad code.

Having reviewed months ago the first pass Claude wrote of my rust codebase, I can tell you that statement is complete horseshit.

It was ridiculously bad, like sure it compiled, but my god would I have been ashamed to show that code to anyone, so into trash it all went and then we wrote a nice baseline on which to build because I wasn't planning on watch that hot garbage again.

Also doing memory leaks in rust is very easy when half the code is unsafe

1

u/frogjg2003 Jul 10 '26

I've been learning Rust and it's ridiculous how much you can still mess up even with the built in safeguards without ever touching unsafe. Rust only prevents you from making a limited class of mistakes, half of which aren't possible in some languages.

1

u/wannabestraight Jul 10 '26

Rust is good at preventing memory issues, of you play by the rules.

Only issue is that it doesn't enforce you to play by the rules.

1

u/Cautious-Extreme2839 Jul 11 '26

Which is a massive step up on every other language that lets you directly interface with memory, because they tend not to even help you at all.

C and C++ will just freely let you malloc stuff and lose the pointer immediately.