Cristian CruzTikTok

Before you strip code comments with Matt Pocock's Nov 20 prompt: in one engineer's report, not a study, the agent broke a workaround in 13 of 25 runs with its comments deleted, against 2 of 25 with them kept, on about 335k lines. I'd keep an ADR pointer. Save this. #AICoding #AIAgents #DevTips #AITools

1:18English(auto-generated)4 segments195 words, 1 min read

Search inside any video

SavedThat transcribes your saved videos and lets you search across all of them instantly. Save this video and find any moment.

TL;DR

Learn about the implications of deleting code comments based on Matt Pocock's viral prompt and an engineer's testing results.

deleting code commentsMatt Pocock promptagent code commentsexcuse auditarchitecture decision recordsworkaround commentstesting code commentsimpact on code quality

Chapters

  1. 0:00Introduction to Matt Pocock's Prompt
    01
  2. 0:10Sorting Code Comments
    02
  3. 0:30The Importance of the Excuse Pile
    03
  4. 0:50Engineer Test Results
    04
  5. 1:05Takeaways and Recommendations
    05

Transcript

0:00

Matt Polcock's viral post tells your agent to delete every comment in your code. Nearly 8,000 people bookmarked it and there's one huge catch. So his prompt hit 370k views this week and it tells Claude or whatever agent you're using to sort every code comment into four piles.

0:16

Useless repeats, stale lies, excuses for hacky shortcuts, and real decisions. So the smartest part is the excuse pile. When an agent leaves a comment like simplified for now, the next agent reads that as a permission and copies the hack everywhere.

0:36

So Matt deletes the first three piles, files tickets to fix the excuses, moves real decisions into architecture decision records, and bans comments with a lint rule. Here's the catch buried in the replies. one engineer tested stripping workaround comments on a 335,000 line repo and without inline comments

0:58

the agent broke the workaround 13 out of the 25 runs so versus two out of 25 with them kept my takeaway steal matt's excuse audit so the agent stops spreading the hacks move big decisions into the decision docs and leave a one-line pointer in the code so the next agent finds it

Are you the creator or rights holder of this video? Request removal of this transcript.

Related Transcripts

Never lose a moment again

Save videos from YouTube, Instagram, and TikTok. Search everything that was said, and jump to the second.

Start Saving Videos - Free Trial