To comment or not? A data-driven look at attitudes toward code comments"
summary
Data-driven rundown: a survey of about 170 respondents (students, bootcamp grads, long-time devs) finds two-thirds write inline comments, most use comments as a memory aid or while experimenting, and opinions are split on scrubbing notes before pushing to GitHub. Concrete artifacts include messy commented-out code and a BeautifulSoup web-scraper example showing why inline clarifications can prevent data loss. Useful if numbers, real examples, and practical trade-offs matter.
AI-written summary · about
chapters (24)
- 0:00Intro
- 0:35Why do we comment
- 1:31Documentation
- 2:00Why we use comments
- 2:25The problem with comments
- 3:08Refactoring
- 4:31Old comments
- 5:27Good comments
- 7:27Beautifulsoup
- 9:11Best practices
- 10:33Questions
- 10:54Internet advice
- 12:27Stack Overflow dry Smackdown
- 13:21Support for newbies
- 16:00Comments can be magic
- 16:20The Twitter poll
- 17:29The survey
- 18:05The results
- 19:05When to add comments
- 19:58Agree vs Disagree
- 21:46Comments should be removed before posting
- 24:20Our code is not just software
- 24:52Our documentation
- 25:22What can we do
