Latest Articles

Programming

Advanced Types in Rust

A complete guide to Rust's advanced type system — newtype pattern, type aliases, the never type, dynamically sized types, Sized and ?Sized, PhantomData, and type-level programming …

Fetching Data with Async/Await in JavaScript

A practical guide to using the Fetch API with async/await in JavaScript to retrieve data from an API and display it on a webpage, including a simple infinite scroll example.

Programming

Procedural Macros in Rust

A complete guide to Rust procedural macros — custom derive, attribute-like, and function-like macros using syn and quote, with real-world examples including a Builder derive and a …

Programming

Writing Unsafe Rust

A practical guide to unsafe Rust — the five unsafe superpowers, raw pointers, FFI, static mut, unsafe traits, unions, and how to write safe abstractions over unsafe code.

Programming

Iterators in Rust

A complete guide to Rust iterators — the Iterator trait, all major adapters, chaining, custom iterators, performance considerations, and common real-world patterns.

Programming

Object-Oriented Programming in Rust

How Rust implements OOP concepts — encapsulation via structs and modules, polymorphism via trait objects, composition over inheritance, and how common OOP design patterns translate …

Programming

Closures in Rust

A complete guide to closures in Rust — syntax, capture modes, Fn/FnMut/FnOnce traits, move semantics, returning closures, and real-world patterns with iterators and threads.

Programming

Traits in Rust

A complete guide to Rust traits — defining and implementing traits, default methods, trait bounds, impl Trait, dyn Trait, trait objects, the orphan rule, and common standard …

Programming

Collections in Rust

A complete guide to Rust's standard library collections — Vec, String, HashMap, HashSet, BTreeMap, VecDeque, and BinaryHeap — with practical patterns and performance notes.