News for hackers. Stuff that matters.
Re:The borrowchecker is what I like the least about Rust by ashdksnndck on Saturday July 19, 2025 @07:52PM (#44620597)
This claim makes some sense to me if your development life cycle is: write and compile once, never touch again.

Working at a company with lots of systems written by former employees running in production… the advantages of Rust become starkly obvious. If it’s C++, I walk on eggshells. I have to become a Jedi master of the codebase before I can make any meaningful change, lest I become responsible for some disaster. If it’s Rust, I can just do stuff and I’ve never broken anything. Unit tests of business logic are all the QA I need. Other than that, if it compiles it works.

Re:The borrowchecker is what I like the least about Rust by ActorNightly on Saturday July 19, 2025 @11:06PM (#44621639)
>If it’s Rust, I can just do stuff and I’ve never broken anything.

This is not true. Case and point- Java. Many times simpler than Rust, and large codebases are as horrible as C++ ones.

Re:The borrowchecker is what I like the least about Rust by ashdksnndck on Sunday July 20, 2025 @02:06AM (#44622392)
I have two primary complaints about Java, relative to Rust:

1. NullPointerException. I get some object with a bunch of fields and I don’t know which of them are null. In Rust I am given a struct, and usually the fields aren’t an Option unless they need to be.

2. Complicated design patterns with inheritance. Maybe it’s more of a problem with the culture/ecosystem than Java the language. But Rust doesn’t have inheritance, and traits are less complicated. So you rarely get the same smells.

Compared to C++, Java is easier to debug, but I still have a lot of “wtf” moments trying to understand what the author was thinking. It is almost like the language is so simple to write, people are making the program more complicated on purpose just to make it interesting.

Re:The borrowchecker is what I like the least about Rust by ActorNightly on Sunday July 20, 2025 @02:27PM (#44627877)
The point is that programmers are ultimately responsible for clean code. You can write very good C code that is very easy to debug. Languages don't really matter for this.