~/talk

How does a Programmer Think About Code?

Talkat Scala Days 2023 Seattle · 2023-06-05..06-07· [ux-and-product-design]
links:none on file
slides:none on file

Research ties code comprehension to working memory ~7 chunks and shows semantic memory activates before working memory, favoring quick recognition. The talk applies that model to API design: prefer names that enable top-down vs bottom-up comprehension, limit method complexity so an abstraction has ≤4–5 subchunks, and avoid dense symbolic syntax. The Scala Toolkit uses this via Cognitive Dimensions scoring, picks libraries (HTTP, optics, os-lib, munit, Typelevel bundle), strict dependency CI, and Scala CLI/SBT integration.

AI-written summary · about

  1. 0:00Programmer cognition
  2. 1:06Language design evidence
  3. 3:33Cognitive chunks in code
  4. 6:43Code comprehension styles
  5. 8:50Neuroscience of code reading
  6. 10:31Tips for readable code
  7. 11:53Code as reverse chunking
  8. 13:58Scala Toolkit project
  9. 17:29Low cognitive cost libraries
  10. 19:13Evaluating libraries
  11. 24:30Selecting libraries
  12. 25:54Contributing to Toolkit
  13. 26:37Toolkit future and release
  14. 27:43Closing and Q&A
~/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.