fbpx

Code reviews that don’t make people cry

Story time. Eight years ago, I was a junior dev, and my PR just got demolished. 50+ comments. Every single line questioned. I remember staring at my screen, blood boiling, thinking “This guy is just showing off. What a jerk.”

I wanted to punch him in the face. (Sorry, Tomek, if you’re reading this!)

Plot twist: Today, I’m that “jerk” leaving detailed comments on PRs. But here’s what I learned about making code reviews actually helpful instead of soul-crushing.

comments that nade me want to QUIT

Here’s what triggered me back then:
– “Why are you using a switch here? Make it a strategy pattern”
– “This should be private”
– “Read about SOLID principles”
– “???”

These comments weren’t technically wrong. But they made me feel stupid, incompetent, and defensive. Not exactly a learning mindset, right?

reality check

Years later, I realized something: My reviewer wasn’t trying to be mean. He was actually investing time to help me grow. But his communication style… well, it needed work.

And you know what’s funny? When I became a senior dev, I caught myself writing the exact same type of comments!️

don’t take it personally

Here’s the thing about code reviews: Your code is not you. We often get emotionally attached to our solutions because we spent hours crafting them. But that elegant architecture you designed? That clever optimization? It’s just code. It’s a tool to solve a problem.

When someone suggests changes, they’re not attacking you. They’re helping you build a better tool. The moment I started seeing code reviews as collaborative tool-building instead of personal criticism, everything changed.

what actually works

After reviewing thousands of PRs (and making plenty of mistakes), here’s what I learned:

1. Start with the good stuff:
Instead of: “This is wrong”
Try: “The error handling here is solid. For the network call, what do you think about…”

2. Ask questions instead of making statements:
Instead of: “Use WorkManager here”
Try: “What made you choose AlarmManager over WorkManager?”

3. Explain the ‘why’:
Instead of: “Make this private”
Try: “Making this private would prevent accidental access from other modules, which could help us when we modularize later”

4. Share your own failures:
“I made this same mistake last year. Here’s what I learned…”

quick tip 🚀

Here’s the mental checklist I use before submitting review comments:

  1. Find at least two positive things first — always start with what works well
  2. Focus on critical issues (crashes, memory leaks, security) — these are non-negotiable
  3. Mark everything else explicitly as suggestions — use “Consider…” or “What do you think about…”
  4. Add helpful resources or documentation links — make it easy to learn more
  5. Re-read your comments before submitting — would they make you defensive?

That reviewer who made me angry? We became good friends. Last year at Droidcon, I thanked him for those harsh reviews. They did make me better — even though his delivery could’ve been smoother.

Remember: Code reviews are about the code, not the person. The goal isn’t to show how smart you are — it’s to help the team ship better code.

What’s your code review horror story? Join our AndroidPro community and share it — I bet you’re not alone!

more insights

Uncategorized
Jarosław Michalik

3 things that defined my Android dev career

Building an Android developer career isn’t just about coding—it’s about the experiences that push you to grow. Whether it’s connecting with other Android devs at meetups or mastering the fundamentals, it’s those key moments that shape how you approach the craft.

Read More »

AndroidPro newsletter 🚀

join 3057 developers reading AndroidPro newsletter every week

👉 tips & tricks, articles, videos

👉 every Thursday in your inbox

🎁 bonus on signup – Clean Architecture blueprint

brought to you by Jarek Michalik, Kotlin GDE

You can unsubscribe any time. For details visit our privacy policy.

android pro newsletter tips and tricks how to learn android