Nowadays it seem all the development happens on Github. There is so called Github flow where you submit pull requests and after they get reviewed by someone on your team they get merged into the master branch.
As Wikipedia suggests code duplication — source code sequence that occurs more than once in a program. Does this mean that every peace of code which looks similar should be considered duplication thus needs to be brought into abstraction? Well, let’s see.
Long story short, experience shows that pull requests should be rather small than big.
I’d say that optimal pull request size is 2–3 days of work. There are number of reasons for that. First and most important reason is Blockers. It’s probably not a good…