It’s been 4 years since my last post here. Since then I have learn to code in Rust (not beautiful Rust may be) and I like it even if the borrow checker drove me crazy and made me cry at first! Why do I like it ? Is it because of it’s speed ? The memory safety provided by the borrow checker ? The productivity similar to that of Python ? These features are great but not the ones I prefer:
- I like it because it’s safer than ever to refactor code because the compiler will not let you alone and will remind you that enum usage you did somewhere that you had already forgotten about! This is one of the main advantage of a strongly typed language :-)
- I like it because of it’s tooling that is amazing not to mention:
cargocommand that manages to build your project, add, remove or update its dependencies, publish your project into crate.io and much moreclippythat will give you some good advice and is highly configurablerustfmtorcargo fmtthat will format your code as you want it to be (also highly configurable): never leave a trailing whitespace or forget a space after a comma….cargo-auditableandcargo-auditthat will generate auditable binaries and audit them (respectively)cargo-sbomfor sbom generation,cargo-tarpaulinfor coverage,cargo-nextestto execute tests faster,typos-clito check typos in your project and so many more…
- I like it because of its community that provides insights and news for different usages, such as scientific, or all the series of arewe.*yet ?:
By the way, give a try to Zed IDE when programming in Rust ;-)