Skip to Content

29 lessons in 3 tracks

Programming Tutorials

Step-by-step guides for Rust, C++ and TypeScript. Each track starts from the first lesson, so you can begin with no background in the language.

Rust Tutorial

16 lessons

Ownership, borrowing, slices, structs, enums and pattern matching, explained with memory diagrams and the compiler errors you will meet along the way.

Start the Rust track
  1. Getting StartedStep-by-step guide to installing the Rust toolchain (rustc, cargo, rustup) on Linux, macOS, and Windows, verifying your setup, and updating toolchains.
  2. Hello, World!Write, compile, and run your first Rust Hello World program — understand fn main(), the println! macro, and how rustc and Cargo build executables.
  3. Variables and MutabilityLearn how variables, mutability, constants, and variable shadowing work in Rust — understand let vs let mut vs const and fix immutability compiler errors.
  4. Data TypesComplete guide to Rust scalar and compound data types — integers (i32, u64, usize), floats, booleans, Unicode char, tuples, and arrays.
  5. FunctionsMaster Rust functions — parameter type annotations, return types (->), statements vs tail expressions, and implicit vs explicit return.
  6. CommentsLearn how to write comments in Rust — single-line // comments, block /* */ comments, and Markdown documentation comments (/// and //!) for cargo doc.
  7. Control FlowMaster Rust control flow — if expressions in let bindings, returning values from loop, loop labels, while loops, and for range iteration.
  8. OwnershipRust ownership explained with diagrams: the 3 rules, stack vs heap, move semantics, clone, and the Copy trait — plus fixing error E0382 (borrow of moved value).
  9. References and BorrowingRust references and borrowing explained with diagrams: the & operator, &mut, the one-writer rule, dereferencing, and fixing E0502, E0499, E0596 and E0106 — with runnable examples.
  10. The Slice TypeRust slices explained simply: &str string slices, &[T] array slices, range syntax, UTF-8 char boundary panics, and why &str beats &String — with diagrams and runnable examples.
  11. StructsRust structs explained simply: defining and instantiating structs, field init shorthand, struct update syntax, tuple structs, unit structs, derive Debug, and fixing E0063, E0594, E0609 and E0106 — with diagrams and runnable examples.
  12. Structs by ExampleA Rust struct example program built three times — loose variables, a tuple, then a struct — plus derive Debug, the pretty-print placeholder, the dbg! macro, derivable traits, and the errors E0277, E0382, E0308 and E0369.
  13. EnumsLearn Rust enums with practical examples. Define variants, attach data, pass enums to functions, compare enums with structs, and understand Option.
  14. Match and Pattern MatchingLearn Rust's match expression with runnable examples: patterns, enum variants, Option, exhaustive matching, guards, ownership, and when to use if let.
  15. Concise Control Flow with if let and let...elseLearn concise control flow in Rust with if let and let...else. Match enums, handle Option and Result, borrow data, and use clear early exits.
  16. Packages, Crates and ModulesUnderstand Rust packages, crates, modules, scope, and privacy. Build a reading tracker with a library, multiple binaries, and practical module examples.

C++ Tutorial

8 lessons

Hello World, functions, classes, constructors, inheritance and the four pillars of OOP, each with examples you can compile and run.

Start the C++ track
  1. Hello WorldWrite your first C++ Hello World program — understand #include <iostream>, main(), and std::cout, and compile and run it with g++ or clang++.
  2. FunctionsLearn how to declare, define, and call C++ functions — prototypes, parameters, return types, pass by value vs reference, and modular examples.
  3. Multiple ParametersPass multiple parameters of mixed types to C++ functions and learn how to return multiple values using structs, std::pair, std::tuple, and structured bindings.
  4. Default ParametersLearn how to use default arguments in C++ functions — set fallback parameter values, follow rightmost parameter placement rules, and avoid overloading pitfalls.
  5. ClassesLearn how to define C++ classes and objects — data members, methods, public/private/protected access specifiers, and practical OOP examples.
  6. OOPs ConceptsUnderstand the four pillars of OOP in C++ — encapsulation, abstraction, inheritance, and polymorphism — with clear C++ code examples.
  7. ConstructorsUnderstand C++ constructors — default and parameterized constructors, overloading, and member initializer list syntax with runnable examples.
  8. InheritanceMaster inheritance in C++ — single and multi-level inheritance, protected members, constructor chaining in derived classes, and method overriding with examples.

What TypeScript is, how to set it up, and how to type functions, default parameters and optional parameters.

Start the TypeScript track
  1. What is TypeScriptUnderstand what TypeScript is, how it extends JavaScript as a typed superset, compile-time type checking vs runtime execution, and when to choose TypeScript.
  2. TypeScript SetupStep-by-step TypeScript setup guide — install Node.js and the TypeScript compiler (tsc), initialize tsconfig.json, and run .ts files with tsc or ts-node.
  3. FunctionsMaster TypeScript functions — parameter and return type annotations, typed arrow functions, void returns, and compile-time argument checks.
  4. Multiple ParametersDefine TypeScript functions with multiple typed parameters — mix primitive and object types, add optional ? parameters, and enforce arity.
  5. Default ParametersUse default parameters in TypeScript functions — combine fallback values with type annotations and understand how undefined triggers defaults.