A to Zig
A from-the-ground-up introduction to programming, taught in Zig. No prior coding experience assumed. Walks step by step from your first `print("hello")` through control flow, functions, slices, structs, error unions, allocators, comptime, and a final capstone where you build a real command-line tool. Even mix of readings, code-with-tests challenges, and quizzes — close the chapter, you've actually learned the chapter.
- zig
- 105 lessons
- ~21 hours
- Free
- by Fishbones
Learn zig for free on Libre Academy with the A to Zig course: 105 interactive lessons you complete by writing real code in a built-in editor, graded instantly by hidden tests. No paywall, no sign-up. It's part of the free, open-source desktop app for macOS, Windows and Linux.
What you get
- Hands-on lessons with a real editor and instant, test-graded feedback.
- Free and open source, with no account required to start.
- Works offline in the free desktop app for macOS, Windows and Linux.
What's inside
- Welcome to Programming (and to Zig)
- Numbers and Variables
- Decisions with if and switch
- Loops
- Functions
- Arrays and Slices
- Strings
- Errors and Optionals
- Structs
- Enums and Tagged Unions
- Memory and Allocators
- ArrayList and HashMap
- Comptime
- Pointers and Manual Memory
- Capstone — Building a Real Tool
Download to start A to Zig → Browse all courses
Helpful reading
Why passive video doesn't make you a programmer · Bring Your Own Book: turning any PDF into a course