~/talk

Naming Things in Elm

Talkat Elm Conf 2018 · on Wednesday, 2018-09-26· [compilers-and-language-design]
links:none on file
slides:none on file

Claim: good names cut cognitive load by aligning code with working memory limits (about two to nine items, peak around four). Tools demonstrated: rename pipeline functions into narrative verbs (completeAssignment), give anonymous args clear names, collapse trivial wrappers after naming, prefer records to ordered tuples for arguments, and use tuples only when the shape is idiomatic and repeated (update returns (Model, Cmd Msg)). A broken example is renamed from filterGradeFiveStudents to fifth graders in class, which clarifies intent and fixes mental-model gaps.

AI-written summary · about

  1. 0:00Introduction to naming importance
  2. 1:00Brain’s working memory limits
  3. 3:50Why good names matter
  4. 5:38Guiding principles for naming
  5. 7:22Mental models in code
  6. 9:51Extended metaphors in naming
  7. 10:53Anonymous functions pitfalls
  8. 12:16Filtering function clarity
  9. 14:43Tuples vs records in Elm
  10. 16:48Records for argument safety
  11. 17:30Tools for better naming
  12. 18:13Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.