Skip to main content
Rafael Fernandez

Rafael Fernandez

⚡ Let’s Rock the Code! ⚡

Recent

Ownership in Rust 1. Stop fearing .clone() — what the borrow checker is not telling you

·7 mins
The Rust community treats .clone() like a code smell. Sometimes it is. But most of the time, the instinct to avoid it costs more in complexity than the clone costs in nanoseconds. We dissect what clone actually does for every common type, the real cost spectrum across six orders of magnitude, and why Clone and Copy are not the same conversation.

Ownership in Rust 2. Six ways to share state — and how to pick the right one

·9 mins
Move, borrow, clone, Rc, Arc, Cow. Rust gives you six lightsaber forms for ownership. Each one counters a specific threat. Using the wrong form against the wrong opponent is not just inelegant — it is fatal. We map each strategy to the situations where it excels and where it fails catastrophically.