← the terminal · instructor

W03 // BASES, HEX, AND WHERE WE SEE IT

SEP 2 · Ch 1 Sec 4-6 · DUE: Assignment 1 (number systems)

This week's deckPPTX

// RUN OF SHOW (8:45-10:15)
8:45

Stand-up: last week's deliverable graded, questions answered

9:00

This week's presentation

9:20

At the keyboard: guided type-along

9:45

Build time: assignment or project work

10:10

Close: commit, push, and preview next week's reading

// THE POINT THIS WEEK
Number bases. Hexadecimal. Converting binary, decimal, hex. Hex in the wild: colors, MAC addresses.
// TALKING POINTS
Bases are just carry rules
  • Base 10 carries at ten; base 2 carries at two; base 16 carries at sixteen
  • Hex digits run 0-9 then a-f; one hex digit is exactly four bits
  • That 4-to-1 packing is why programmers love hex: it's binary, abbreviated
Hex in the wild
  • #ff0000 is a hex color: two digits each of red, green, blue
  • ff is 255, the loudest a channel goes
  • MAC addresses, memory dumps, and color pickers all speak hex
  • Read ff9900 out loud: full red, medium green, no blue: orange
> TREASURE HUNT WEEK

The Hex Cache opens today: student door · foreman key. Badge J. Run it in the build block or assign as the week's warm-down.

// LINKS