~/talk

Naming is Hard: Let's Do Better

Talkat CppCon 2019 · 2019-09-15..09-20· [career-development]
slides:none on file

Argues that good names must convey the actual behavior: prefer partial_sort vs top_n when callers want the top N, use get/set for simple accessors and use richer methods like approve/deny when side effects matter, keep user-facing terms consistent across code, DB and UI, avoid repeating the class name in members, prefer begin and end (and source/destination) for expected pairs, rename as soon as the true role is known using external TODOs if needed, and choose template and short local names only when they match established, documented conventions.

AI-written summary · about

  1. 0:00Introduction
  2. 1:13What makes a good name
  3. 6:30Names tell a story
  4. 16:34Consistency in naming
  5. 22:19Functions and verbs
  6. 28:18Classes and nouns
  7. 36:25Local variables
  8. 42:10Avoiding abbreviations
  9. 45:02When to name things
  10. 51:10Final thoughts
~/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.