785
STOP WRITING C (lemmy.world)
submitted 8 months ago by Maven@lemmy.world to c/programmerhumor@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] Metype@lemmy.world 1 points 8 months ago

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 8 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.

this post was submitted on 21 Jan 2024
785 points (93.4% liked)

Programmer Humor

32115 readers
206 users here now

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

Rules:

founded 5 years ago
MODERATORS