Get the latest tech news

Don't write Rust like it's Java


I didn't discover the joy of writing Rust code until I stopped trying to make the language something it isn't.

The percentage of errors I encounter while working on Apollo(a Python app) that could have been caught by the Rust compiler is quite high (I won’t claim 100%, but pretty close). I didn’t discover the joy of writing Rust code until I stopped trying to make the language something it isn’t. Bootstrapping your dependency tree requires some work up front, but once complete, you have an army of independent services at your beck and call.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Java

Java

Photo of Rust

Rust

Related news:

News photo

A cryptographically secure bootloader for RISC-V in Rust

News photo

DARPA Wants to Automatically Transpile C Code Into Rust - Using AI

News photo

Rust-Written 'Redox OS' Now Has a Working Web Server