Skip to main content
Part 4 of 7 · Chapter 2 of 4

Splitting a Program Into Pieces

A single file works exactly until it does not, somewhere around the point it holds three unrelated things. Split one program across two files, import one from the other, and watch the boundary hold.

Intermediate8 min read

Make a free account to read on

Every chapter is free — an account is how your progress, XP, and streak follow you from your laptop to your phone, and how you show up on the leaderboard. No payment, no trial.