~/talk

What Makes a Good Function

slides:none on file

Argues that good functions avoid surprises and fail early by using clear type rules, showing surprising c() behavior where combining factors, dates, and NULLs returns integers or loses timezones. Demonstrates a concrete fix: a new vctrs package with vec_c that applies consistent coercion, and contrasts base ifelse with dplyr's strict if_else that errors on mixed types. Emphasizes useful error messages, predictable return types, and small composable functions.

AI-written summary · about

  1. 0:00Start
  2. 0:03The Design of Everyday Functions
  3. 0:48The Practitioner versus the Programmer
  4. 2:49The First Notebook War
  5. 6:46How Do You Get Rid of a Legend in Ggplot2
  6. 7:46What Makes a Bad Function
  7. 12:08Atomic Vectors
  8. 19:56Group by Function
  9. 29:07Types of Functions
~/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.