Bit
The smallest unit of information: a 1 or a 0. 8 bits make a byte.
Example
The letter 'A' is stored as 01000001: 8 bits. A 3 MB photo is about 24 million bits.
Lessons that use it
What an IP is
Every machine has an address
The OSI model
The network, in 7 layers
TCP and UDP
Safe or fast
DNS records
Each domain's instructions
Load balancers
Sharing the work
Cache
What's asked often, close at hand
Evicting and spreading the cache
The cache fills up
Big O notation
How much does it grow?
Time complexity
Count steps, not seconds
Space complexity
How much memory it asks for
Basic data types
The bricks of everything
How numbers are stored
Negatives and decimals in binary
How letters are stored
Every letter is a number
Arrays
Adjacent cells
Memory and cache
Close is fast
Stacks
Last in, first out
Hash algorithms
A good hash spreads evenly
AVL trees
A tree that straightens itself
Building a heap
Bottom-up is cheaper
The k largest
Keep the best without sorting everything
What makes a good sort
5 things you ask of it
Unbounded knapsack and coins
Repeats are allowed
Greedy algorithms
The best right now
Fractional knapsack
Most value per kilo
Maximum product cutting
Cut into threes
Dense and sparse indexes
The book's index
Circuit breaker
Cut it before everything burns
OAuth 2.0 and OpenID Connect
Grant access without giving the password
Single Sign-On
One login for everything
Designing a URL shortener
A long link in 7 characters
Generating unique keys
Where 3I71d3o comes from
