
Explore why Zig appeals to non-systems programmers, highlighting performance, safety, explicit error handling, compile-time evaluation with CompTime, const versus var, and Hello World setup with Homebrew or Scoop.
Explore Zig data types—strings, floats, arrays, and integers—and learn to print them with s and d format specifiers, while inferring arrays and using i8, i16, i64, and u variants.
Learn how Zig handles mutable and immutable values with const and var, and how i32 and f64 annotations influence compilation and constant window dimensions.
Explore control flow constructs—if, while, and for—and learn to write conditions with mandatory parentheses, space between the operator and operands, use of integers and variables, and printing iterative results.
Explore defining functions in zig with fn and pub, specify parameter types after a colon, declare a return type, and build a function body with examples like add and print.
Explore the three Zig comment types—file-level, inline, and documentation—describing what they cover and why you write comments to explain intent over implementation.
Learn to read input from stdin and write output to stdout in Zig, using reader and writer, handle error unions, and trim return and newline characters before printing.
Use the defer statement to execute code after a scope exits in Zig, causing actions to run in reverse order. This helps clean up resources, such as freeing allocator allocations.
Master Zig file I/O by reading files with read file alloc using the page allocator in the current working directory, then create, write all, append, overwrite, and delete files.
Learn how Zig differentiates arrays and slices—the fixed-length, compile-time arrays and the runtime, mutable slices—then use std.arraylist with an allocator for appending and removing elements.
Iterate over Zig arrays, slices, and string hash maps using for loops and the standard library iterator, printing indexes, values, and floats with two decimal places.
Explore Zig structs and how to design data with imperative paradigms, avoiding inheritance and oop, using a cat struct with name and age and a say info method.
Define enums in Zig as a set of named constants using const name equals enum, and use them with a switch to print the corresponding string after compiling.
Discover how Zig's tagged unions provide safe, compile-time morphable data by modeling ok and error variants, then use switch statements to handle each case and print messages.
Explore generics in Zig by implementing a generic swap function that handles ints and floats, demonstrating type parameters and before and after results to show dynamic features.
Learn Zig error handling with or else and catch blocks, parse input, trim the new line and return character, and gracefully handle bad input to avoid crashes.
Learn how to work with string literals and string handling in Zig, including const u8 literals, printing with the s format specifier, concatenation with strmem.concat, and formatting with alloc.print.
Parse and access JSON values in Zig using std.json, then serialize data back to JSON, with examples of parsing strings, accessing root fields, and iterating feature arrays.
Discover optionals and nullability in Zig by using a question mark before an I32 type to represent a value or null, with control flow showing when a value is present.
build a zig project to implement a reverse Polish notation calculator using a gpa allocator, arraylist of f64, and token input; includes stack operations and error handling.
Master Zig allocators to manually manage memory with alloc, free, and resize, gaining full control without a garbage collector while using the page, C, testing, and fixed-buffer allocators.
Compare Python and Zig abstractions, showing how Zig requires pre-allocated arrays, manual allocators, and realloc for resizing, while array lists and defer manage memory safely.
Explore arena allocators that pre-allocate a block and quickly allocate short-lived objects in Zig, using a 1024-byte arena and a fixed buffer allocator to print even numbers.
Explore how pointers and references update memory in Zig, illustrated with a Python-style example, a player health example using takeDamage, and using the dot star syntax to mutate pointed values.
Discover Zig compile-time evaluation by performing 5x5 at compile-time with comp-time and the inline keyword, enabling massive performance gains; use SetEvalBranchQuarter to adjust branching for near-immediate results.
Explore Zig's C interoperability by creating a small C library with add and hello, compiling it, and calling it from Zig using the built-in C toolchain and C import.
Explore cross compilation with zig, building for other platforms without extra toolchains, using the target flag to specify architecture os and abi like x86_64-windows and arm-linux-gnu to produce executables.
Learn manual memory management in Zig by using allocators, performing allocate and free operations, and applying defer-destroy patterns to safely manage int pointers and arrays.
Explore Zig multithreading with a worker thread model that spawns workers, simulates work with sleep, and joins threads, enabling zero allocations using the page allocator for performance.
Master the Zig build system from initializing a project with zig init to building with zig build and testing with zig build test, while exploring zig out and src.
Discover how RAII in Zig uses defer for resource acquisition and automatic cleanup at scope end, preventing leaks and enabling safe memory management.
Learn how Zig's comptime enables metaprogramming with compile-time type checks, unit-safe generics, and conditional modules, including compile-time tables and zero runtime overhead.
Explore concurrency in Zig with Thread.spawn, mutexes, atomic values, and the defer keyword, then simulate multi-threaded deposits and withdrawals to ensure correct balances.
Explore advanced error handling in Zig, including custom error sets, try propagation, catch handling, error defer, and error unions with parse and divide examples.
Learn test-driven development in Zig by writing unit tests first, using std.testing assertions, and running zig test to verify simple and negative cases with multiple tests.
Learn how the singleton design pattern creates a single global logger in Zig, using getLogger and a global glogger, with 0.15.1 changes replacing getStdOut by fs.file and writeToStreaming.
Explore the builder design pattern in Zig by progressively constructing a complex object through init functions and chained setters, demonstrated with a myConfig struct and a final main configuration.
Demonstrate the factory design pattern in Zig, using a tag union to model shapes (circle radius, rectangle width and height) and a simple make shape interface to compute area.
Explore the observer design pattern in Zig, implementing a one-to-many relationship where a subject notifies multiple observers of state changes using addListener and notify.
Explore the strategy design pattern, a behavioral design pattern that defines a family of interchangeable algorithms, encapsulated as concrete strategies in Zig with a context and strategy interface.
TLDR: If you want to understand Zig concepts quickly and concisely and have basic programming knowledge, this is the right course to get.
The course is also being frequently updated to match the numerous API changes in Zig pre-1.0, and will expand in content over time. The version of Zig at the time of writing is 0.15.2.
This course is designed for intermediate programmers coming from high-level languages like Python, JavaScript, Ruby, or Java who are curious about diving into lower-level programming with the Zig language—without needing a background in systems programming or C.
Zig offers a modern, robust alternative to C, combining low-level control with clean, readable syntax and a focus on safety, performance, and simplicity. This course bridges the gap between high-level programming habits and the hands-on, memory-conscious world of Zig.
You’ll learn Zig’s core syntax and design philosophy, explore manual memory management (without fear), and understand how to write efficient, safe, and portable code. You'll also get a primer on build systems, error handling, and cross-compilation, all from a high-level programmer’s perspective.
Again, Who This Course Is For:
High-level language developers curious about systems-level programming
Web/backend/mobile developers wanting more control over performance
Programmers looking to write native code without diving into C/C++
Anyone interested in learning Zig with zero low-level background required
By the end of the course, you'll not only understand how Zig works but also how to think in Zig—by being fully able and capable of confidently writing powerful, efficient programs that are close to the metal, without the complexity of legacy systems languages.