$
COMING SOON

Stop Reading. Start Typing.

The distraction-free, terminal-based way to master new languages. Built for developers, by developers.

Immersive Practice Environment

No videos. No lengthy articles. Just you, the concept, and the terminal.

rust_basics — -bash — 80x24
Step 4/12
CONCEPT: MUTABILITY

Variables are Immutable by Default

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!
~ cargo run
Compiling playground v0.0.1...
error[E0384]: cannot assign twice to immutable variable `x`

// Challenge: Fix the error by making 'x' mutable.

let mut x = 5;
Ready to submit

Curated Learning Paths

From "Hello World" to complex systems. Choose your weapon.

SYSTEMS

Rust Fundamentals

Master ownership, borrowing, and lifetimes. The hardest parts of Rust explained interactively.

WEB

TypeScript Deep Dive

Go beyond basic types. Learn Generics, Utility Types, and advanced interface patterns.

CS

Algorithm Patterns

Sliding Window, Two Pointers, and BFS/DFS. Prepare for interviews with interactive code challenges.

🚧 Courses under construction 🚧