~/talk

The Art of Code Comments

Talkat JSConf Hawaiʻi 2020 · 2020-02-05..02-07· [developer-experience]
slides:none on file

Argues that comments must state the actual why not restate the how, shows browser-workaround comments (user‑agent hacks targeting old Firefox and Chrome/Safari/Opera), recommends marking temporary or deadline code with explicit flags so future maintainers can safely refactor, advises linking to Stack Overflow or original sources, stresses using version control instead of dead code, and cites 30% vs 70% coding vs reading to justify spending minutes improving or removing misleading comments.

AI-written summary · about

  1. 0:00Start
  2. 7:13COMMENTS CAN BE LIKE CHAPTERS OF A BOOK
  3. 7:59A GUIDE TO KEEP THE LOGIC STRAIGHT WHILE WRITING THE CODE
  4. 10:30COMMENTING AS A TEACHING TOOL
  5. 14:02IT WASN'T WELL MAINTAINED
  6. 16:41YOU COULD HAVE USED A BETTER NAME
~/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.