~/talk

//TODO: Write A Better Comment

Talkat droidcon NYC 2019 · 2019-08-26..08-27· [developer-experience]
slides:none on file

Article that told developers to stop writing comments is rejected as bad advice and replaced with a practical plan: classify comments as remove redundant comments, unhelpful, or genuinely useful; eliminate comments by renaming methods or extracting functions; keep comments that explain why a workaround exists (example: an Epoxy interceptor plus an updated-questions map to show local answers over an immutable list); make comments actionable by linking to Jira or Stack Overflow, use IDE references so refs update on refactor, and be consistent in phrasing (always state the true condition for booleans).

AI-written summary · about

  1. 0:00Introduction
  2. 0:47Java’s bad advice on comments
  3. 1:51Purpose of code comments
  4. 3:56Risks of outdated comments
  5. 5:43Three types of comments
  6. 6:25Removing unnecessary comments
  7. 7:49Code vs comments for clarity
  8. 9:32Writing helpful comments
  9. 10:15Comments should explain why
  10. 11:59Adding examples to comments
  11. 13:02Linking to resources
  12. 15:30Actionable to-do comments
  13. 16:52Deprecation with guidance
  14. 17:35General comment tips
  15. 18:16Summarizing code sections
  16. 18:58Referencing definitions
  17. 20:44Consistent comment language
  18. 21:49Summary and recap
~/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.