this post was submitted on 21 Jan 2024
779 points (93.3% liked)

Programmer Humor

32479 readers
641 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] Metype@lemmy.world 1 points 9 months ago (1 children)

There's a project I could have written in Rust. Maybe some of the headache wouldn't have ever happened using Rust.

I also didn't know Rust at the time and it was a large project with unkind deadlines. I think the right tool for the job can also depend on available resources. So while the more unsafe, older tool I used caused a few small issues that Rust would not have; the project wouldn't have been finished if I'd used Rust.

[โ€“] Pipoca@lemmy.world 1 points 9 months ago

Yeah, projects also exist in the real world and practical considerations matter.

The legacy C/C++ code base might slowly and strategically have components refactored into rust, or you might leave it.

The C/C++ team might be interested in trying Rust, but have to code urgent projects in C/C++.

In the same way that if you have a perfectly good felling axe and someone just invented the chain saw, you're better off felling that tree with your axe than going into town, buying a chainsaw and figuring out how to use it. The axe isn't really the right tool for the job anymore, but it still works.