#Code Review

Why GitHub's pull requests are not good for code review

Published at March 12, 2019 ·  1 min read

I hope many of you at lease once created or received pull requests in GitHub. Usually, before pull request is merged some code review process happens. Even after the last changes, code review functionality in GitHub is not really cool for day to day activities.

I think it’s mostly because of pull requests are not designed for code review. It just allows you to add a few comments to the code. It was designed to allow contributors to propose their patches from fork to the original repository. Usually, in small and maybe in a mid-size project, the code review process is a pretty quick and not frequent activity.

...


Code review: why do we need it?

Published at January 27, 2019 ·  1 min read

I don’t want to argue about necessary of code review now. It’s to each team to specify rules on how to do it. I just want to share with you my opinion why do we need it on each project.

  • First of all, it’s about code knowledge sharing. It’s a great chance to share knowledge about the project with a team. More code reviews you do - more knowledge about the project you’ve got.
  • To learn something new. New practices, approaches, etc - you may know a lot of interesting doing the code review.
  • To be on the same page with a team. More code reviews mean more communications between team members. It helps you to understand what the team expects from you and how to write good code for the particular project. It’s kind of formal type of communications which helps to build a good Team.
...


Work with Gerrit: git review-update

Published at January 26, 2019 ·  1 min read

If you work with Gerrit you use its CLI tool git review.

Working with OpenStack, I use it a lot every day. I need to update the last patch and send it to the Gerrit very often. That’s why I created one line script to execute git commit -a --amend && git review command.

I put it into the /usr/local/bin/git-review-update file with a following content:

 #!/bin/sh

git commit -a --amend && git review

Now, I can use git review-update command to update the last patch and send it to Gerrit. It’s a good example of the simplest and fastest solutions which works for me during the last two years. Of course, I have to read Contributing guide and propose a new command to git-review at some point.

...


Tags

.net .net framework .net framework 3.5 agile ajax ajax control toolkit ampq ansible apache asp.net asp.net mvc automation axum babel bash benchmark blog blog engine bootstrap buildout c# cache centos chrome ci cinder ckan cli cloud code review codeplex community config debugger deface dependencies development environment devices devstack devtime disks django dlr dns docker dockerimage dos easy_install elmah encoding environment variables error event events everything-as-a-code exception exceptions fabrik firefox flask foreach forms fstab gae gcc gerrit git github go google google app engine grep hack hacked hardware headless horizon hound html hugo iaas ienumerable iis internet iptables iron python ironic iscsi java script javascript jenkins jquery js jsx k8s kharkivpy kiss kombu kubernetes kvm kyiv lettuce libvirt linux lio loci logging loopback losetup lvm mac os macos mercurial microsoft microsoft sync framework mobile mono ms office msbuild networking news nginx npm npx offtopic oop open source open xml opensource openstack openvswitch os p'n'p packages paraller development patterns & practices performance php pika pip plugins podcast popup postgresql profiler project protocols proxy pycamp pycharm pycon pykyiv pylint pypi python python 3 qcow quantum qumy rabbitmq rar react reactjs refactoring rfc rhel search engine security selenium server shell silverlight socket software engineering source control sourcegear vault sources sql sql server sql server express sqlalchemy ssh static site sublimetext svg tests tgt tipfy todo tornado typescript uapycon ui uneta unit tests upgrades usability vim virtualenv visual studio vitrage vm vue.js vuejs web development web server web service web_root webpack webroot windows windows live word press x32 x64 xcode xml xss xvfb интернет-магазин книги

Recent posts

Go 1.18: new features

Всё будет Kubernetes

2022 Relaunch

Everyday Blogging

I don't want this CI


Archives

2022 (3)
2019 (73)
2018 (2)
2017 (3)
2016 (2)
2015 (3)
2014 (5)
2013 (17)
2012 (22)
2011 (36)
2010 (25)
2009 (35)
2008 (32)
2007 (2)