The Future Stack of Code Review

Rate this content
Bookmark

Somehow, the code review had the same jokes and process while the software development world changed daily. Join us to learn how to adapt this process to the modern stacks and make the CR process an efficiency party.

This talk has been presented at JSNation 2023, check out the latest edition of this JavaScript Conference.

FAQ

Code review plays a crucial role in software development by ensuring improvement, mentoring, and quality assurance. It involves scrutinizing written code to improve the product and help developers grow their skills.

Since 2016, software development has shifted from using monolithic servers to adopting microservices architecture, which involves multiple programming languages and cloud-based solutions. This transition allows for more frequent software updates and horizontal scaling.

Despite technological advancements in software development, the fundamental aspects of code reviews, such as the need for human wisdom and the basic techniques, have remained unchanged. Human insight is still crucial for understanding and managing the software.

Code reviews can often slow down the development process, acting as 'velocity enemies' that obstruct the flow of continuous integration and delivery. They require manual effort that can disrupt the automation and efficiency of development pipelines.

Automation can enhance the code review process by reducing repetitive tasks and focusing human reviewer efforts on critical aspects. Tools like ESLint can automatically enforce coding standards and best practices, thereby streamlining reviews and reducing errors.

Human involvement in code reviews is essential for providing unique insights, understanding the broader context, and making informed decisions that automated tools cannot fully replicate. Humans can assess readability, design implications, and the overall impact on the project.

The effectiveness of code reviews can be measured using metrics from tools like GitHub, which track the duration and outcomes of code reviews. Analyzing these metrics helps identify bottlenecks and areas for improvement in the review process.

Gabriel L. Manor
Gabriel L. Manor
22 min
05 Jun, 2023

Comments

Sign in or register to post your comment.

Video Summary and Transcription

The Talk discusses the challenges of code reviews and the need to redefine the code review process in light of changes in software development. It emphasizes the importance of collaboration, security, performance, and clean code in the new stack of code review. The Talk also highlights the benefits of automating code review comments and optimizing the code review process. Overall, the Talk aims to build a better code review process that promotes collaboration and improves the quality of software development.

1. The Annoying Code Reviewer

Short description:

Today, I want to introduce you to the annoying person in every team who nobody wants to do a code review. They always have comments that disrupt the work and break your world. Dealing with 20 comments like 'Looks good to me' can be a problem.

So, hello, I'm Gabriel and today I want to introduce you to a person that we all know because they exist in any team, and this is the annoying person that no one wants to let them do a code review, right? The code review always looks better, they have comments like, This is not how I would do it, and then it moves more personal, but it's okay because the boss tells them that it disrupts the work, and then it goes longer and longer, and it has like all those not mean nothing comments that just broke your world, right? This is how code reviews work, and then you learn to do the LGTM. Looks good to me, but the problem is always put it as an issue. So you have to deal with 20 comments like LGTM.

2. The Evolution of Code Reviews

Short description:

I experienced a similar problem with an annoying code reviewer in my team. After years of avoiding their reviews, I started reflecting on how the software stack has evolved. From a Java monolith server to microservices running on the cloud, the tools and techniques for code reviews have remained the same. I turned to Twitter for opinions and found insights on improvement, mentoring, and quality.

So I know your problem because I experienced such a person too in my team. And after six years living with that person that I do everything just to not let them review my code, I start to think. And I took a look into the way that the software stack changed over the years. I started to work back then in 2016 in the same place. We used to have like a Java monolith server that we solved as a virtual machine together with Oracle database. We do a vertical scale, mean we just installed the same image 50 times and we released the software every six months.

Then we moved to some microservices in 2018. We did a gateway to load the balance software piece instead of hardware load balancer. We go further in 2020. We got microservices in multiple languages. We completely running on the cloud. We do horizontal scale and so on so forth. Now we spending in microservices every week. We ship our software in minutes, but code reviews stay the same. For the last 20 years, the tools stay the same. The comments stay the same. They way that people do code review, the techniques that they tell you you should do code review stay the same.

And that all look weird to me. And every time things looks weird to me, I'm going to Twitter. I know it's not the right thing to do, go to Twitter and ask opinions for people. But that's me. And I asked that question and I really recommend you, there is a link below to see the tweet itself. I really recommend you to go to see what people answer, but let's also take a look here and see some words. So let's look here. For example, Karen said that is about improvement and that's right. We want to get improved as a developer. We want our product to be improved. And hence we do code review. Boris speaking about mentoring and we'll get to it later. We see Lia speak about quality and so on.