Chapter 3

The generated code looks clean, but is it right?

Mã máy viết trông gọn gàng, nhưng có đúng việc?

The chapter's question

Do I review AI-generated code differently from human-written code?

Big idea

Code that looks neat is not necessarily code that is right for the company's work.

In this chapter

  1. Part 3.1

    Right Syntax, Wrong Logic

    Does this code understand the business rules correctly?

  2. Part 3.2

    Unfamiliar Libraries

    Does the code call libraries or functions that do not exist?

  3. Part 3.3

    Edge Cases

    How does the code handle empty and invalid data?

  4. Part 3.4

    Does the Author Understand It

    Can the author explain every part?

The reading for this chapter is inside Conan School

This chapter has 4 readings, with case stories and exercises. Chapter 1 of A Day in the Life of a Code Reviewer is free to read right here.

Read in Conan School

Chapters of A Day in the Life of a Code Reviewer

  1. 1.Is code review really about catching bugs?
  2. 2.Why do bigger changes get approved faster?
  3. 3.The generated code looks clean, but is it right?
  4. 4.Which review comments are rules, and which are taste?
  5. 5.What does a change cost while it waits for review?