← All courses

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 runs in your browser and the free desktop app.

What you get

  • Hands-on lessons with a real editor and instant, test-graded feedback.
  • Free and open source — no account required to start.
  • Runs in your browser, and offline in the free desktop app.

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

Start A to Zig free →   Browse all courses