Byte
A group of 8 bits. It's the unit memory is measured in and the smallest one with its own address.
Example
1 byte can take 2⁸ = 256 values, from 0000 0000 to 1111 1111. A 1 KB file has 1,024 bytes.
Test yourself: Byte
Basic data types
1 byte has ___ bits.
8 bits, each 0 or 1. That's why a byte can take 2⁸ = 256 different values, from 0000 0000 to 1111 1111.
0/1
▶ PlayLessons 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
Measuring efficiency
Fast and light on memory
Types of structures
How they relate and where they live
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
Linked lists
Links of a chain
Memory and cache
Close is fast
Stacks
Last in, first out
Hash algorithms
A good hash spreads evenly
Trees in an array
No references, just math
Choosing how to search
Brute force or using the order
What makes a good sort
5 things you ask of it
Selection sort
Picking the smallest, over and over
Merge sort
Split in half and merge in order
Heap sort
Take the maximum and leave it at the end
REST APIs
Resources and verbs
GraphQL and gRPC
Other ways to talk to an API
SSL, TLS and mTLS
Talk without anyone listening
Requirements and estimates
Ask before you draw
Designing a URL shortener
A long link in 7 characters
Generating unique keys
Where 3I71d3o comes from
Designing WhatsApp
2 billion messages a day
Designing Twitter
1 billion tweets a day
Designing Uber
10 million rides a day
