~/talk

Naming: Why it's important and how to do it right

Talkat PyCon SK 2024 · 2024-03-15..03-17· [developer-experience, python]
linkedin:d-hervas
slides:none on file

The common bug found in PRs is imprecise names; concrete advice includes renaming process_data to print_average_temperature_per_day, using keyword args and type hints, and splitting functions that mix printing and notifying so each does one thing and becomes testable. Examples show generic names like data, item, i are harmful; leaking implementation details (AWS_ELASTICACHE_ENDPOINT -> REDIS_URL) confuses more than it helps; comments belong only where bit‑level tricks (Quake III inverse sqrt) are unavoidable. avoid generic names use concrete nouns and action verbs don't leak implementation details

AI-written summary · about

  1. 0:00Introduction to naming
  2. 1:13Why naming matters
  3. 3:05Common naming mistakes
  4. 5:55Avoid generic names
  5. 8:04Concrete nouns and action verbs
  6. 9:27Be specific in names
  7. 10:52Explicit over implicit
  8. 12:15Avoid unnecessary details
  9. 15:29Leaking implementation details
  10. 19:00Comments vs good names
  11. 21:53When comments are needed
  12. 22:13Single responsibility with names
  13. 26:08Naming is subjective
  14. 28:18Q&A: Changing variable names
  15. 30:42Q&A: Pandas DataFrame suffixes
  16. 32:09Q&A: Naming conventions
  17. 33:14Q&A: Longest variable names
  18. 34:17Q&A: Typing variables
  19. 35:45Q&A: Naming by scope
  20. 37:33Q&A: Inner functions
  21. 39:23Q&A: Emojis in names
~/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.