Google's Engineering Practices - What to Look for in a Code Review

Topics covered
Popular Clips
Episode Highlights
Positive Feedback
In code reviews, emphasizing positive feedback can be as impactful as pointing out errors. highlights the importance of acknowledging good work, especially when mentoring, as it reinforces improvement and boosts morale. suggests creating a shorthand for positive feedback, akin to "nitpicking," to make it a regular part of the review process 1. humorously notes that people often receive more kindness from strangers than from those they work closely with, underscoring the need for positive reinforcement in professional settings 2.
Commenting Practices
Proper commenting practices are crucial for code clarity and maintenance. emphasizes that comments should explain the "why" rather than the "what" of the code, especially for complex algorithms or regular expressions 3. distinguishes between inline comments and documentation, noting that comments should clarify the code's purpose and usage without being overly verbose 4. adds a humorous touch by suggesting that comments on regular expressions might as well be written by "monkeys banging on keyboards," highlighting their complexity and the need for clear explanations.
Naming Conventions
Clear and meaningful naming conventions are vital for enhancing code readability and reducing errors. argues that while variable names should be concise, they must also convey enough information to be understood without extensive context 5. He stresses the importance of method and class names, as these are crucial for future developers navigating the codebase 6. agrees, noting that overly generic names can indicate a method is doing too much, suggesting that names should accurately reflect the method's purpose.
Related Episodes


Google’s Engineering Practices – Code Review Standards
Answers 383 questions

Google’s Engineering Practices – How to Navigate a Code Review
Answers 383 questions

Clean Code - Comments Are Lies
Answers 383 questionsClean Code - Formatting Matters
Answers 383 questionsClean Code - How to Write Amazing Functions
Answers 383 questions

Clean Code - How to Write Classes the Right Way
Answers 383 questionsThe DevOps Handbook – The Technical Practices of Feedback
Answers 383 questions

The DevOps Handbook - The Technical Practices of Flow
Answers 383 questions

The DevOps Handbook – Anticipating Problems
Answers 383 questionsHow to be a Programmer
Answers 383 questions

Gitlab vs Github, AI vs Microservices
Answers 383 questions

Is Kubernetes Programming?
Answers 383 questions

Site Reliability Engineering - Evolution of Automation
Answers 383 questions

We're Testing Your Patience...
Answers 383 questions

Write Great APIs
Answers 383 questions
