this post was submitted on 26 Oct 2023
31 points (87.8% liked)

Rust Programming

8190 readers
18 users here now

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] robinm 4 points 1 year ago (1 children)

I can totally understand the iterating speed due to higher cognitive load of a statically typed language, and non instant compilation.

However I am very surprised about your refactoring experience. For me Rust is at least in a league of its own. In python/js I am terrified that I could break some unknown parts of my code whenever I touch anything. In C++ I fear that I just broke an invariants and made something UB. In all those languages, I expect regressions when I'm refactoring. But in Rust, even for large scale architecture changes if it compiles I'm quite certain that it's going to be easy to validate and often works the first try. What point points do you enconter that make your experience sub-optimal ?

[–] [email protected] 1 points 1 year ago

@robinm that’s the point. Refactoring in Rust is safe. You can change a small module in a project and as long as you don’t fuck up the logic you can be sure, that if it compiles, it will work. I used C/C++, QML/JavaScript and Python. For me personally Rust provides the best workflow to iterate fast and write safe code.