Stop Reading. Start Typing.
The distraction-free, terminal-based way to master new languages. Built for developers, by developers.
The distraction-free, terminal-based way to master new languages. Built for developers, by developers.
No videos. No lengthy articles. Just you, the concept, and the terminal.
In Rust, variables are immutable by default. This is one of many nudges Rust gives you to write code in a way that takes advantage of the safety and easy concurrency that Rust offers.
However, you still have the option to make your variables mutable. We do this by adding mut in front of the variable name.
let x = 5;
// x = 6; // Error!
let mut y = 5;
y = 6; // OK!
// Challenge: Fix the error by making 'x' mutable.
From "Hello World" to complex systems. Choose your weapon.
Master ownership, borrowing, and lifetimes. The hardest parts of Rust explained interactively.
Go beyond basic types. Learn Generics, Utility Types, and advanced interface patterns.
Sliding Window, Two Pointers, and BFS/DFS. Prepare for interviews with interactive code challenges.