Programming Languages

Learn Python, JavaScript, Java, C++ or Rust from zero. Short lessons, one small exercise at a time: read, type, run, and watch your code get checked.

70 lessons, 50 of them free.

Python: Python Basics

  • Hello, World!: Make Python talk: print text and numbers, and leave notes for humans.
  • Variables: Store values in named boxes, change them, and print them.
  • Numbers and Maths: Use Python as a calculator: the main operators, brackets, decimals and rounding.
  • Strings: Work with text: join it, fill it in with f-strings, pick out letters and change it.

Python: Python Control Flow & Lists

  • Conditionals: Let your program make decisions with if, elif and else.
  • Lists: Keep many values in one list, then add, remove, slice and sort them.
  • Loops: Repeat code without copying it: for loops, range, while, break and continue.

Python: Python Functions & Data

  • Functions: Name a block of code once, then reuse it as often as you like.
  • Dictionaries: Store values under names (keys), look them up, change them and count with them.
  • Classes: Make your own types of objects that bundle data and actions together.

Python: Python Advanced

  • Advanced OOP (Pro): Build class families with inheritance, properties and dunder methods, the way real Python libraries do.
  • Decorators and Generators (Pro): Wrap functions with decorators and produce values lazily with iterators and generators.
  • Errors and Context Managers (Pro): Handle and raise errors cleanly, design your own exception types, and guarantee clean-up with `with`.
  • Dataclasses and Typing (Pro): Write clear, typed Python with dataclasses, enums, abstract base classes and protocols.

JavaScript: JavaScript Basics

  • Hello, World!: Make JavaScript talk: print text and numbers, and leave notes for humans.
  • Variables: Store values in named boxes with let and const, and change them when you need to.
  • Strings and Numbers: Do maths, join text together, and use handy string tools like .length and .toUpperCase().
  • Conditionals: Let your code make decisions with comparisons, if / else and the ternary.

JavaScript: JavaScript Functions & Arrays

  • Functions: Wrap code in reusable functions that take inputs and give back results.
  • Arrays: Keep lists of values in arrays: read them, add to them, search them and slice them.
  • Loops: Repeat code without copy-pasting: for, for...of, while, break and running totals.

JavaScript: JavaScript Objects

  • Array Methods: Use forEach, map, filter, reduce and find to work with whole arrays in one line.
  • Objects: Group related values under named keys, give them methods, and loop over them.
  • Classes: Use classes as blueprints to build many objects with the same shape and methods.

JavaScript: JavaScript Advanced

  • Closures and Scope (Pro): Control where variables live, use closures for private state and factories, and keep this pointing where you want.
  • Advanced Classes (Pro): Build class hierarchies with extends and super, guard data with private fields, and know when to mix in behaviour instead.
  • Errors, Iterators and Generators (Pro): Handle errors with your own error types, and make objects that loop with for...of using iterators, generators, Map and Set.
  • Functional Patterns (Pro): Write pure, immutable code and build small reusable functions with map, filter, reduce, pipe, currying and memoization.

Java: Java Basics

  • Hello, World!: Write your first Java program: print lines of text and leave notes for humans.
  • Variables: Store numbers, text and true/false values in variables, and change them.
  • Strings: Join, measure, slice and compare text.
  • Conditionals: Let your program make decisions with if, else and switch.

Java: Java Loops & Arrays

  • Loops: Repeat code with for and while loops, stop early, and add things up.
  • Arrays: Keep many values in one array, read and change them, and loop over them.
  • Methods: Package code into reusable methods that take inputs and give back answers.

Java: Java Objects

Java: Java Advanced

  • Interfaces and Abstract Classes (Pro): Design with interfaces and abstract classes, use polymorphism, and override equals, hashCode and toString properly.
  • Generics (Pro): Write type-safe generic classes and methods, use bounds and wildcards, and sort with Comparable and Comparator.
  • Exceptions (Pro): Catch, throw and define exceptions, close resources safely, and use Optional instead of null.
  • Lambdas and Streams (Pro): Write lambdas and method references, model data with records, and process collections with streams.

C++: C++ Basics

  • Hello, World!: Make C++ talk: print text and numbers, start new lines, and leave notes for humans.
  • Variables: Store numbers, letters, text and true/false values in named boxes, and change them.
  • Operators: Do maths with variables, split things up with / and %, and compare values.
  • Conditionals: Make your program choose what to do with if, else, && || ! and switch.

C++: C++ Loops & Vectors

  • Loops: Repeat code with while and for, skip or stop with continue and break, and add things up.
  • Vectors: Keep a list of values in a std::vector, grow it, and loop over it.
  • Functions: Write your own reusable commands with inputs and outputs.

C++: C++ Going Further

  • Strings: Join, measure, slice and search text with std::string.
  • References & Pointers: Give a variable a second name, let functions change your variables, and meet pointers gently.
  • Classes: Design your own types with fields, methods and constructors, and make objects from them.

C++: C++ Advanced

  • Inheritance and Polymorphism (Pro): Build class families with inheritance, virtual methods and abstract bases, dodge slicing and destructor bugs, and give your types operators.
  • Templates (Pro): Write one function or class that works for any type, from a generic max to your own Stack<T>, and see why it all happens at compile time.
  • Smart Pointers and RAII (Pro): Manage memory the modern way: RAII, unique_ptr, move, shared_ptr and weak_ptr, so nothing leaks and nothing is freed twice.
  • STL Algorithms and Lambdas (Pro): Write lambdas and hand them to sort, find_if, count_if, accumulate and transform, then count things with std::map.

Rust: Rust Basics

  • Hello, World!: Write your first Rust program: print text, fill in values with {} and leave notes for humans.
  • Variables: Store values with let, change them with mut, reuse names with shadowing and fix values with const.
  • Data Types: Meet Rust's everyday types: whole numbers, decimals, true/false, single characters and text.
  • Functions: Write your own functions with typed parameters and return values.

Rust: Rust Control Flow & Ownership

  • Control Flow: Make decisions with if and else, and repeat code with loop, while and for.
  • Ownership: Rust's big idea, gently: moving values, cloning them, and lending them out with & and &mut.
  • Structs: Group related values into your own types with struct, and give them methods with impl.

Rust: Rust Data

  • Enums and match: List the possible choices with enum, handle each one with match, and deal with missing values using Option.
  • Vectors and Strings: Keep lists of values in a Vec, and build and explore text with String.
  • HashMaps and Errors: Look values up by key with HashMap, and handle things that can fail with Result.

Rust: Rust Advanced

  • Traits and Generics (Pro): Share behaviour between types with traits, write one function for many types with generics, and mix different types in one list with trait objects.
  • Lifetimes (Pro): See why references need lifetimes, annotate functions and structs with 'a, and fix the borrow checker's most common errors.
  • Iterators and Closures (Pro): Write closures, chain iterator adapters like map, filter and fold, build your own iterator and handle errors in a pipeline with ?.
  • Smart Pointers (Pro): Use Box for recursive types, Rc for shared ownership, RefCell for changing shared data and Drop to run cleanup code.