~/lightning

How Far Should You Indent Your Code? - The Number Of The Counting

Lightningat CppCon 2024 · on Sunday, 2024-09-15· [developer-experience]
links:none on file
slides:none on file

Clear claim: three spaces is the sweet spot between common two and four indent styles. Evidence includes a quick team vote that split two vs four, then adopted three; a visual comparison of code snippets; and a note about the Linux kernel anomaly forcing eight to discourage deep nesting. The argument cites a cultural reference (Monty Python counting) as historical reinforcement rather than empirical proof, and presents this as a pragmatic compromise that actually got adopted.

AI-written summary · about

  1. 0:00Intro
  2. 0:26Who is Dave
  3. 0:57How to maximize readability
  4. 1:22The most crucial decision
  5. 2:07Indenting by 1
  6. 3:28Linux kernel anomaly
  7. 3:54The hole in the middle
  8. 4:17Jason Turners code
  9. 5:19Monty Python
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.