KASP Rule — A rule to review a PR

Govinda Raj
1 min readApr 1, 2021

--

Few points, we need to understand while reviewing PR(Pull Request). I follow the KASP rule.

  1. Review code kindly. what I mean is — We should review the code, not the person, to do that you can avoid “you/your” words. Remember, reviewing PR not only helps the writer, but you can also be benefitted from it. Leave at least one positive comment.
  2. Comment with accuracy. Don’t leave ambiguous comments. Your comment justifies your understanding. Revisit your comments.
  3. Review it slowly. Understand the business requirement first. Get to know about design patterns(SOLID, DRY, KISS). Talk to the writer if you don’t understand it. Don’t hurry my friend. Remember, there can be multiple ways(logic) to solve a problem and principles are guidelines, not rules.
  4. Review in parts. Try to understand code in modules, class, behavior(method). If you find difficulties on github/gitlab, open it in an editor. Sometimes you might need to read the same code again.

Thanks
Twitter

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Govinda Raj
Govinda Raj

Written by Govinda Raj

Senior Software Developer. Tech Enthusiast and love coding. My portfolio: https://govinda-raj.github.io/

No responses yet

Write a response