Urgent.News

What's breaking now, across thousands of outlets.

Tech

Code Review Anxiety: 6 Cognitive Distortions That Hit During PR Review (And How to Break Them)

Target : Dev.to developers | CBT×dev niche | 6 distortions + pre-PR grounding protocol The PR Review Spiral You open the GitHub PR page. Your heart rate spikes. Your palms are sweaty. The diff loads — 47 files changed, 2,300 lines. And there's already a comment: "Can we discuss the approach here?" Your mind races: They hate it. They think I'm a fraud. I should've known better. This is going to…

Opening the GitHub PR page can cause an instant spike in anxiety. The reviewer's comments may evoke thoughts like "They think I'm a bad developer" or "This PR is going to be rejected." These are cognitive distortions that can be addressed through cognitive behavioral therapy (CBT) techniques.

The first distortion, mind reading, involves assuming the reviewer is judging you negatively based solely on their comments. The reality is that code review comments are focused on the code itself, not the developer's competence. A suggested reframe is that the comments are about the code's behavior, not the developer's worth.

Another distortion, catastrophizing, involves imagining the worst-case scenario where the entire PR is rejected, deadlines are missed, and the developer gets fired. The reality is that many PRs get merged with changes, and even major rewrites are learning opportunities. A reframe could be that the comments indicate engagement, not rejection, and that the alternative of no review is worse.

Labeling is another distortion where a single piece of feedback leads to labeling oneself as "a terrible developer." The reality is that one PR comment does not define a developer's entire skill level. A reframe is that the specific choice could be improved, but it does not define the developer's overall competence.

All-or-nothing thinking involves believing that the code is either perfect or trash, with no middle ground. The reality is that all code has trade-offs, and "good enough for now" with a TODO for improvement is often the right call. The reframe is that perfect is the enemy of shipped, and shipping beats perfectionism.

The distortion of should statements occurs when developers beat themselves up for not anticipating every possible feedback point. The reality is that nobody knows everything, and review exists to catch things missed by fresh eyes. A reframe is that doing one's best with the knowledge available is a learning opportunity, not a test that must be aced.

Lastly, emotional reasoning assumes that anxiety during review is proof of being not good enough. The reality is that anxiety is a physiological response, not a truth-teller. Everyone feels PR anxiety, even senior engineers. The reframe is that feeling anxious because one cares about their work is a good thing, and the feeling does not reflect one's actual skill level.

To reduce review anxiety, a pre-PR grounding protocol is recommended. This includes writing down anxious predictions, using a reframe library for each distortion, rating anxiety on a scale of 1-10, and using a review response script when receiving feedback. By addressing these cognitive distortions, developers can break the cycle of code review anxiety and foster a healthier, more productive review process.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

How I track internship applications

Most students I talk to apply to 30, 50, sometimes 100 internships in a season. By week three, it is hard to remember which ones you already applied to, which ones need a referral, or which deadline…

  • Spreadsheet tracks 2,200+ internships across US and Canada
  • Columns include company, role, posting source, application status
  • Weekly review sorts by follow-up date to stay organized

When internship applications open by industry

Two students can start their summer internship searches in the same month and have very different experiences. One finds that a target program has already closed.

  • Finance internships may start up to a year before summer 2027.
  • Consulting firms often recruit from June to November for internships.

Making Scanned PDFs Searchable with OCRmyPDF and Tesseract

A scanned PDF looks like a normal document, but it behaves like a stack of photographs. You can't search it, you can't copy a paragraph, and a lot of scripts that "extract text" come back empty.

  • Scanned PDFs appear as images, not searchable text
  • pdftotext reveals lack of text layer in unreadable PDFs
  • OCRmyPDF simplifies converting PDFs to searchable formats

More from Tuesday 17 November →