Here’s Why You’re Doing Code Review WRONG - Essential Software Engineer Skills

preview_player
Показать описание
After years of working across multiple teams + companies, here are my best practices and tactics to have better code reviews. Code review is a fundamental part of every well run engineering team: any code written should get reviewed by a human who approves the change.

Hi! I’m Rahul, a software engineer and founder with a passion for teaching.

Timestamps:
0:00 - Intro
1:20 - Different company terminology for code changes
2:03 - Code review if you're new to a team/company
2:40 - Healthy code review -- too high level
3:14 - Healthy code review -- too low level
3:58 - Healthy code review -- sweet spot
4:51 - Best practice #1 - keep code changes small
5:37 - Best practice #2 - delegate work to the computer
6:37 - Best practice #3 - be proactive about getting feedback
7:27 - Best practice #4 - be aware of the back-and-forth

#TechCareerGrowth
Рекомендации по теме
Комментарии
Автор

For more tips about code review from the session that Alex and I gave to 700+ people, download our mobile apps:

RahulPandeyrkp
Автор

Totally agree with your points! Wish I had come across this video in my early career

chriszhang
Автор

Great tips. The back and forth was pretty useful - especially the fact that the team and you are in this together - so some code would be approved, even if all changes are not in there!

parry
Автор

Awesome content Rahul! I love the tips about proactively leaving comments on your own diff and leaving funny memes. I'm about to start a new job so this is great timing. Thanks a ton :D

celina
Автор

As a new grad software engineer, this is super helpful! Thanks for making this video :)

Sidenote 1: How do you think the GIF/meme sharing on code reviews is viewed from a professional standpoint at large companies?
Sidenote 2: Looks like you've a dope desk setup! You should make a video on it :))

patanjalikumar
Автор

This is insightful and, personally for me, affirming in a number of ways. I agree with every point you made, as It is almost exactly how I think about reviews / PRs. Although I admit that I have, on rare but embarrassingly recent occasions, been guilty of committing some pretty chunky refactors in a single commit, but I was aware of and apologized for the painful review burden it represented.

I was nervous when you brought up nitpicks in reviews though - until i saw what you consider a nitpick and what you consider a valid / important suggestion and realized we agree! Naming is super important, but sometimes I feel guilty about being a stickler about it. But it's so crucial for future supportability. This is particularly important when reviewing the PRs of our new grad hires, because it establishes the level of thoughtfulness that they should be striving for, and it gives them context that they very likely were not aware of.

rdean
Автор

That meme part in code review was fun. Great video. Keep up the good work Rahul.

MaulikDodiaHollywoodMovieLover
Автор

Thank you so much, Rahul. This video landed at the right time for me! :)

ElonMusk-ezxz
Автор

What if most of your junior developers are not experienced with the language, for example, Scala? There are too many ways to write the same thing in Scala. When you have new engineers who are new to it, how do you keep a balance between making sure I’m helping them to learn the language and not stressing them out about code reviews?

yuichichi
Автор

Thank you for your video.

When I have a big PR for example few thousands lines of code then I should apply stacked PRs. What is the best strategy for merging in that situation?

Cheers

ThanhDoan-zjvu
Автор

Do you know why bro is sweating?

He's carrying the weight of all of us industry freshers. thank you for the videos and knowledge

Sanyu-Tumusiime
Автор

Just love these videos. The content is so original! Thanks! I really hope you channel grows exponentially. For some reason I just had a random thought your content would go very well with Ali Abdaal sort of video styling. Just a thought, I really appreciate the content either way!

sheetalkadam
Автор

How can I expedite the approval process for code changes?

it_qasqyr
Автор

The main problem with code review is that their efforts are not considered and estimated. People do it for charity. This is why no one take any code review task seriously.

pradeeshbm
Автор

I agree linters catch the logic bugs. Human code review is for things like swatting away class creation that doesn't make sense.

steveeuphrates-river
Автор

Sir
I don’t know if you have seen my comment few days ago on one of your videos where you talked about how to focus on the specific section on the codebase when starting your first job instead of trying to understand everything and become really good at it.
Yes I applied it 2 days ago and installing I was able perform better.
I am getting better and better .
I always watched all your videos but you have never made a videos about how self taught could succeed in the industry and what he should earlier on his career.
I taught myself two years ago and been working as backend engineer for 4 months now .
We focused on Java, spring framework and aws s3
Thanks

gabrielfono
Автор

Great video bro, i have questions: do use linux for programming?

aryanpandey
Автор

Your thoughts about going into web3 as a fresh grad, is that a good option, as there aren't many big web3 companies, and the big companies are only hiring experienced people and not taking fresh grads, so should fresh grads go into a small startup or a service-based company, or they should just go into Big Tech companies as Software engineers and then get experience there and then apply to big web3 companies?

hamzaraza
Автор

Do you have any good content (online or yourself) about splitting PRs into smaller PRs? I often find my PR gets too big and I'm never quite sure what to do at that point

Dontcaredidntask-qm
Автор

For #2, don't IDEs do this for you? I mainly stick to Jetbrains IDEs and their built-in automation scripts are pretty powerful. I'm not dealing with multimillion line codebases though, closer to hundreds of thousands.

Love the videos!

vulpixelful