“Rust’s compiler prevents common bugs” So does skill. No offense to you, but, this trope is getting so tiresome. If you like the language then go ahead and use it. What is it with the rust crowd that they have to come acrosslike people trying to convert your religion at your front door?
At this point, I’ve seen far more people being almost violently anti-rust than I’ve seen people being weirdly enthusiastic about rust. If Rust people are Jehovah’s Witnesses, then a lot of the anti-Rust people are ISIS.
Unlike you babies I have Personal Responsibility and I write all of my code directly in assembly the way reagan intended. I don’t need guard rails and I’ve never had any issues with it because my Personal Responsibility keeps me safe
Magnetised needle and a steady hand or gtfo
“Should I use rust or c++” is the wrong question IMO. The right question is “do I want the code I run, written by thousands or millions of randos, to be written in rust or c++”.
I love this argument because it means this dude is the only skilled C developer on the planet. Chromium devs are just chumps that should be replaced by this uncommon God.
If we measure only by the amount of mistakes, there would be much more skilled C developers. Take my pristine skills for example, I’ve made zero mistakes writing all of my 3 lines of C code over years and years, zero mistakes
C’s compiler prevents common type bugs and handles things like register allocation for you? So does skill.
“So does skill” I agree 100%
However, we’re human. You show me a skilled developer who never causes bugs, and I’ll show you a liar.
No matter how skilled or experienced a developer is, they always have the capacity to introduce a bug by accident.
Whether it’s a typo, or simply being tired or distracted, or just having one of those moments, or even one of those days. It’s completely normal.
Coding is just communication, and when working on larger codebases it can be just as nuanced as interpersonal communication. People miscommunicate every second of the day.
I’ve never used Rust.
Because most projects are worked on by multiple people, and you shouldn’t trust that everyone who will work on something will have the same skill level as you
If there are two languages otherwise equivalent in NFRs, where one lets you make the mistakes and the other doesn’t, you’re a bit silly if you don’t pick the latter.
Good engineers shouldn’t struggle to use a different language, so that’s not an argument
While I do totally see the advantages of rust and agree skill is not a solution given people make mistakes…I do agree a lot of the very vocal rust advocates do act almost religious and it is an annoying turn off.
We had the Java guys in year 2000, at least Rust seems to be a decent language.
Java was created so that teams of intermediate skill programmers could maintain large, long-lived code bases. And it did its job incredibly well.
If that is not your use case (or you do not want to admit that you are such a programmer), it may not be your favourite language.
I always like C# far better. It may be my favourite language overall. It has a bit more headroom and was designed somebody far more skilled. But it was designed to compete directly with Java. So, you know who it was built for.
Seems there still are some around!
I’ve never run into a Java evangelist. Every opinion I’ve ever heard about Java is something like “Yeah, this sucks”. I always thought that people put up with it because it’s write-once, run-anywhere, but so is, y’know, Python.
Early on, Java was advertized as the next great thing, ending headaches from system development, porting, and “promoting good programming practices through OOP”.
Then people increasingly got tired of OOP and the speed penalty of both that paradigm and the JVM, not to mention more and more education institutes started to claim Java was too hard for beginners, and that Python would be better.
Now we have Rust evangelists promoting the language as the next great thing, ending headaches from memory safety issues, porting (if you target WASM and pack your app into a Chromium instance), and “promoting good programming practices through FP”.
Time is truly a flat circle…
I love Java
There was a saying back in the day, roughly: “java can run on all platforms like anal sex works on all genders”.
Python is slow but fantastic when it comes to interoperability IMO and is just complex enough that you can get the job done. I just hope they’ll won’t complexify it into oblivion, it’s a really neat language. IMO.
I love Java and use it every chance I get
Do you have time to talk about our lord Rust? Did you know it died for our bugs so we don’t have to debug them at run time?
The really annoying part is all the people saying that you shouldn’t like Rust because actually it’s not magically bug free. Yeah, no shit. No one who touched Rust claims it lets you write bug free code. People like Rust because it’s modern, fast, has great tooling, great documentation and really nice features like Traits and Algebraic data types. Memory and thread safety is just a bonus.
Ammm actually… ☝️🤓 most Rust evengalists claim that Rust prevents you from writing bugs
It’s hard to argue with that statement. Like, literally, I have no idea who rust evangelists are, where to look for them and how to find out what “most” of them think about anything.
Yep - I don’t really know who these evangelists are either. I have read about “fearless concurrency,” which seems pretty spot-on.
Some bugs. I have never heard anybody remotely skilled in Rust claim that it prevents bugs in general.
Python prevents many classes of bugs too (compared to C++). And any statically typed compiler will prevent some bugs that Python allows. Not too controversial I hope. Of course, unlike Rust, Python is unsuitable for many C++ use cases for other reasons.
I do not use Rust and my self-image is not tied to C++. So I do not have to get upset when people explain the benefits of Rust.
Rust is not perfect. That is why I do not use it. But it is not some elaborate lie either. It was designed to do certain things, and it does.
Any type safe language will help you prevent a wide range of bugs that non safe languages need tons of tests to detect.
Everyone makes mistakes, no matter the level of skill
A real programmer only needs parentheses smdh
I can sympathize with some people getting tired of “rewrite it in Rust”, especially when it’s suggested inappropriately. (Worst I saw was an issue opened on something, maybe a database, I don’t remember. Someone said they were a new programmer and wanted to help and only knew a little Rust and that if the project was rewritten in Rust they could help.) But… Rust’s compiler being able to do those things is actually super useful and amazing. This is like someone saying they don’t need static types because they know the language good enough to not misuse the dynamic types. This is like someone saying they don’t need C because they’re good at assembly.
While it isn’t something as simple as Rust being strictly better than C/C++, it’s really silly to say that you being a good developer means you don’t need guardrails. Everybody makes mistakes all the time. You’re not perfect.
What’s actually tiresome is how this keeps happening: https://paulgraham.com/avg.html
Great read
At my last job I worked in a code base written in C and it needed to be certified to MISRA level A, and even in a language with as many foot guns as C, it’s possible to write safe code. You just need to know what you’re doing. I know there are tons of Rust zealots out there claiming it’ll solve every last problem, but it turns out you just need to be careful.
it turns out you just need to be careful
Famous last words
10 months, 2 weeks, 6 days and 12 hours since I was saved and accepted the one true language (not)
My condolences on not being saved and accepted, I hope the future still holds good things for you 🙏