←back to thread

517 points bkolobara | 1 comments | | HN request time: 0.001s | source
Show context
amai ◴[] No.45049911[source]
"I have found that Rust's strong safety guarantees give me much more confidence when touching the codebase. With that extra confidence I'm much more willing to refactor even critical parts of the app, which has a very positive effect on my productivity, and long-term maintainability."

That is usually why you have tests for your code. But if you have no tests a programming language with a strict compiler is of course more helpful. But the best is to write tests. Then you can also refactor code with confidence written in "sloppy" programming languages.

replies(4): >>45049998 #>>45050001 #>>45050061 #>>45051630 #
1. lock1 ◴[] No.45049998[source]
Agree with your point. Writing good tests & utilizing type system properly should help a lot with catching bugs.

But for some reason writing tests always reminds me with xkcd "Standards" (https://xkcd.com/927/). Instead of "fixing standards by create another standard", now it's catching code bug with more code.

At least for type system, it gets maintained by language maintainers, not project maintainers.